Releases: import-js/eslint-plugin-import
Releases · import-js/eslint-plugin-import
rise of Babylon
- Internal parser is now Babylon (6) by default (so generally, you can remove
babel-eslint
asimport/parser
) - published eslint-config-import with 3 different stock configs
- all rules are off by default; use config package +
import/warnings
to get previous defaults:
---
extends:
- 'eslint:recommended' # or your favorite base config
- import/warnings # or just `import` if you want only the basics
- import/es7-jsx # will configure the parser for stage 1 ES7 syntax + JSX
Both import/warnings
and import/es7-jsx
extend the base import
config, so you only need to mention it explicitly if you want only the basic config. All 3 will set plugins: - import
for you, too.
import/parse-options
setting allows custom configuration options for Babylon, or whatever parser package you specified withimport/parser
no-require
"Breaking" change: (i.e., tests changed)
no-require
is now enforced on core, npm, and unresolved packages. It is still disabled by default. Thanks, @lightsofapollo!
import 'export' from 'rules'
- added
export
rule to head off theimport
problems at the source - meta: this ES6 validation plugin is now (partially) written in ES6
babel-eslint-plugin-import
• custom parser via import/parser
setting (#38)
export default function() { return 'it works!'; }
- fixed issue where
no-reassign
crashed on unnamed default exports (#29)
let [, bugfix] = ['works', 'now']
no-reassign
: fixed a crash for array destructuring with omitted positions (i.e.let [/*missing*/, present] = [4, 2]
)- linted everything to a (more) consistent code style
- pulled out traversal/file resolution to
eslint-import-core
package (#25)
no-named-as-default
- adds rule from #23
- some minor cleaning
- removed
estraverse
dependency
no-require
no-require
rule.- Package tests to prevent rules from being forgotten from index.
es6-only
destructuring
Added destructuring pattern awareness to no-reassign
.
Improved exists
report message.