You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
A Formal Commitment to New Language Features The JSHint team Jul 7th, 2015 In recent months, JSHint has been receiving requests to support proposed JavaScript language features like async/await, method decorators, and class property declarations [1]. The JSHint team has turned down each request, even after the release of ES2015. This has not been easy; as open source project maintainers, nothing g
A Formal Commitment to New Language Features JSHintのブログに投稿されたA Formal Commitment to New Language Featuresという記事の紹介です。 BabelなどによってES.nextの機能を試せるようになっていますが、 JSHintがそれらの新しすぎる構文をサポートするのが難しい理由について。 理由の一つとしてメンテナンスが難しすぎるという問題があること。 もう一つの大きな理由としては、JSHintは常にコミュニティ駆動型のツールであるため、 エコシステムを破壊するかもしれないまだ不安定なものをファーストクラスとしては採用しない事が挙げられています。 JSHintがJSLintをforkして作られた経緯については、以下に作者のブログで書かれています。 Why I forked JSLint to JSH
Stay Relevant and Grow Your Career in TechPremium ResultsPublish articles on SitePointDaily curated jobsLearning PathsDiscounts to dev toolsStart Free Trial7 Day Free Trial. Cancel Anytime. Key Takeaways JavaScript linting tools such as JSLint, JSHint, JSCS, and ESLint help to avoid mistakes in coding by adhering to a coding standard and identifying potential errors. Each has its own pros and cons
重い腰を上げてESLintを使い始めた。そろそろv1.0.0になるらしい。これは良いなと思ったところを簡単にまとめておく。ついでに引っかかって対処にちょっと悩んだところも。既にすごく好感触なので、このまま素直に乗り換えられると良いな。 package.jsonに設定が書ける 外部設定ファイルとしては.eslinrcの他にもpackage.jsonに混ぜ込むこともできる。フィールド名はeslintConfigで、それ以下は同じ。 { "eslintConfig": { "env": { "node": true } } } 通常のnpmパッケージでは別にした方が良さそうだが、依存解決にnpmを使うだけとかコマンド作るためだけのようなプライベートなケースでは特に気にせず混ぜてしまって良さそう。 no-multi-spaces 複数の連続した空白が検出できる。 var a = 1; これで警告出
Yesterday, we pushed a new version of JSHint. We decided to label it 2.5.0 because—while it's backwards compatible—there are a few major changes. The following options were removed: nomen, onevar, passfail, white, gcl, smarttabs, trailing. In addition to that, indent no longer provides warnings about indentation levels. You can still use it to set your tab-width but it will be used only for charac
プラグイン機構を持っているので、Lintするルールを追加できる ESLint 本体のコードがシンプルに保たれる Mozilla JavaScript AST をベースとしているため、他のものと連携しやすい EsprimaでパースしたASTをLintする two-pass のツール つまりEsprimaでパースできないとLintはできない また、現段階だと巨大なjsファイルではJSHintより3倍程度遅い Rule performance などにまとめられている、速度については今後改善していくとのこと JSLint/JSHint互換のようなルールが作られている – ESLint Rules List Node.js で書かれているツール 将来的には Browserified されたバージョンも出す予定 ドキュメントがよく書かれている それぞれのルールごとにドキュメントが書かれている esli
This release fixes a couple of bugs and adds new checks and options. Version 2.3.0; Las Vegas to San Francisco edition (Anton Kovalyov) Fixed #1252: Add an option to warn about overwriting native objects. (Caitlin Potter) Fixed #1293: Make latedef=nofunc ignore inner functions. (Jared Jacobs) Fixed #1243: Detect comparisons with 'typeof x' and check the other operand. (Oleg Grenrus) Fixed #1305: R
JSHint 3 plans Anton Kovalyov Oct 8th, 2013 A few weeks ago we shipped the new JSHint website and it seemed like people liked it! In this blog post, I'd like to share my plans for the next major release of JSHint. The next release will be a backwards incompatible release in which I plan to clean up and simplify our core package. Here are my current goals for that release: Remove all style-related
色々な言語に対応したシンタックスチェックのプラグイン。けっこうよさげなので使ってみる。 https://github.com/scrooloose/syntastic 設定はこんなん。 " syntastic let g:syntastic_mode_map = { 'mode': 'active', \ 'active_filetypes': [], \ 'passive_filetypes': ['html'] } let g:syntastic_auto_loc_list = 1 let g:syntastic_javascript_checker = 'jshint' HTMLは色々エラるのでとりあえずチェックしない syntastic_auto_loc_listを1にしとくとエラったときQuickfixが立ち上がる jshintを使いたい場合、gjslintとかjslintがイン
本家のJSHintでは、.jshintrcのなかでこんな感じでコメントが書けるんですけど、 { // Enforcing "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) "camelcase" : false, // true: Identifiers must be in camelCase "curly" : true, // true: Require {} for every new block or scope "eqeqeq" : true // true: Require triple equals (===) for comparison } grunt-contrib-jshintではvalidなJSONしか認められてなくて、コメントが書けませんでした。 のでプルリク送ったら即マー
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く