ESLint v3.12.0 released
by Kai Cataldo - 9 December 2016We just pushed ESLint v3.12.0, which is a minor release upgrade of ESLint. This release adds a new feature and fixes several bugs found in the previous release.
Highlights
This is a summary of some of the notable changes in this version of ESLint.
Additional APIs
This version includes the addition of three new API methods:
getRules
tolinter
version
tolinter
version
toCLIEngine
Apologies for the lack of clear documentation on the above - our API documentation needs an overhaul, and we plan on updating this in the near future.
New option for eslint --init
This version adds the ability to pick the airbnb-base
config without eslint-plugin-react
, for those who want to follow the Airbnb styleguide but do not use React.
New Rules
One new rule was added:
Autofixing
Autofix support was added to the following rule:
Features
- 1d0d61d New: Add no-await-in-loop rule (#7563) (Nat Mote)
- 2cdfb4e New: Additional APIs (fixes #6256) (#7669) (Ilya Volodin)
Enhancements
- e569225 Update: fix false positive/negative of yoda rule (fixes #7676) (#7695) (Toru Nagashima)
- 4278c42 Update: make no-obj-calls report errors for Reflect (fixes #7700) (#7710) (Tomas Echeverri Valencia)
- b921d1f Update: add
indent
options for array and object literals (fixes #7473) (#7681) (Teddy Katz) - 7079c89 Update: Add airbnb-base to init styleguides (fixes #6986) (#7699) (alberto)
- f8786fb Update: add fixer for
capitalized-comments
(#7701) (Teddy Katz)
Bug Fixes
- e95a230 Fix: indent "first" option false positive on nested arrays (fixes #7727) (#7728) (Teddy Katz)
- 81f9e7d Fix: Allow duplicated let declarations in
prefer-const
(fixes #7712) (#7717) (Teddy Katz) - abfd24f Fix: don't validate schemas for disabled rules (fixes #7690) (#7692) (Teddy Katz)
- 0a2a7fd Fix: Allow \u2028 and \u2029 as string escapes in no-useless-escape (#7672) (Teddy Katz)
Documentation
- 4742d82 Docs: clarify the default behavior of
operator-linebreak
(fixes #7459) (#7726) (Teddy Katz) - 63bb3f8 Docs: improve the documentation for the autofix API (#7716) (Teddy Katz)
- 90a5d29 Docs: Remove incorrect info about issue requirements from PR guide (#7691) (Teddy Katz)
- f80c278 Docs: Add sails-hook-lint to integrations list (#7679) (Anthony M)
- e96da3f Docs: link first instance of
package.json
(#7684) (Kent C. Dodds) - b30116c Docs: Fix code-blocks in spaced-comment docs (#7524) (Michał Gołębiowski)
- 76c33a9 Docs: Change Sails.js integration to active npm package (#7675) (Anthony M)