Skip to content

Releases: import-js/eslint-plugin-import

rise of Babylon

05 Nov 14:15
Compare
Choose a tag to compare
  • Internal parser is now Babylon (6) by default (so generally, you can remove babel-eslint as import/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 with import/parser

no-require

09 Oct 17:42
Compare
Choose a tag to compare

"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'

15 Nov 00:44
Compare
Choose a tag to compare
  • added export rule to head off the import problems at the source
  • meta: this ES6 validation plugin is now (partially) written in ES6

babel-eslint-plugin-import

17 Jul 02:08
Compare
Choose a tag to compare

• custom parser via import/parser setting (#38)

export default function() { return 'it works!'; }

05 Jun 12:24
Compare
Choose a tag to compare
  • fixed issue where no-reassign crashed on unnamed default exports (#29)

let [, bugfix] = ['works', 'now']

24 Apr 11:24
Compare
Choose a tag to compare
  • 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

15 Apr 11:05
Compare
Choose a tag to compare
  • adds rule from #23
  • some minor cleaning
  • removed estraverse dependency

no-require

09 Apr 11:36
Compare
Choose a tag to compare
  • no-require rule.
  • Package tests to prevent rules from being forgotten from index.

es6-only

01 Apr 10:52
Compare
Choose a tag to compare
  • Removed no-common in favor of enforcing that all imports have ES6 modules behind them. (#20)
  • resolve.root setting allows module resolution to start from some arbitrary path within your package, instead of just relative paths and node_modules. (#18)

destructuring

26 Mar 10:57
Compare
Choose a tag to compare

Added destructuring pattern awareness to no-reassign.
Improved exists report message.