LoginSignup
1
1

More than 5 years have passed since last update.

ESLint v2.4.0

Last updated at Posted at 2016-03-12

v2.3.0 | 次 v2.5.0

ESLint v2.3.0 よりbabel-eslintパーサーを併用した時に問題が発生していた不具合への対処がメインです。

以下、機能追加です。

#5495 --parser-optionsコマンドライン オプション

CLI から構文解析器へ渡すオプションを指定できるようになりました。

$ eslint test.js --env es6 --parser-options ecmaVersion:7

再現コードを Issue に載せるとき、ES6 モジュールや JSX を利用していてもワンライナーで書けるようになるので便利です。

$ echo "/* problematic code */" | eslint --stdin --rule semi:1 --env es6 --parser-options "sourceType:'module'" --no-ignore --no-eslintrc

オプションが追加されたルール

  • #5332 - no-confusing-arrow - 式がカッコで囲まれている場合に Arrow + 三項演算子を許可するオプションが追加されました。
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1