eslint-plugin-import
Advanced tools
Changelog
[1.10.2] - 2016-07-04
npm prepublish
of 1.10.1.
Several rm -rf node_modules && npm i
and gulp clean && npm prepublish
s later, it is rebuilt and republished as 1.10.2. Thanks [@rhettlivingston] for noticing and reporting!Changelog
[1.10.0] - 2016-06-30
no-restricted-paths
]. ([#155]/[#371], thanks [@lo1tuma])import/core-modules
setting]: allow configuration of additional module names,
to be treated as builtin modules (a la path
, etc. in Node). ([#275] + [#365], thanks [@sindresorhus] for driving)newline-after-import
related to the use of switch cases. (fixes [#386], thanks [@ljharb] for reporting) ([#395])Changelog
[1.9.2] - 2016-06-21
export
] and [no-deprecated
] rules. ([#348], [#370])Changelog
[1.9.0] - 2016-06-10
no-deprecated
]. ([#321], thanks [@josh])prefer-default-export
] handles export function
and export const
in same file ([#359], thanks [@scottnonnenberg])Changelog
[1.8.1] - 2016-05-23
export * from 'foo'
now properly ignores a default
export from foo
, if any. ([#328]/[#332], thanks [@jkimbo])
This impacts all static analysis of imported names. ([default
], [named
], [namespace
], [export
])order
]'s newline-between
option handle multiline import statements ([#313], thanks [@singles])order
]'s newline-between
option handle not assigned import statements ([#313], thanks [@singles])order
]'s newline-between
option ignore require
statements inside object literals ([#313], thanks [@singles])prefer-default-export
] properly handles deep destructuring, export * from ...
, and files with no exports. ([#342]+[#343], thanks [@scottnonnenberg])Changelog
[1.8.0] - 2016-05-11
prefer-default-export
], new rule. ([#308], thanks [@gavriguy])no-mutable-exports
]. ([#317], fixed by [#322]. thanks [@borisyankov] + [@jfmengels])no-extraneous-dependencies
] handle scoped packages ([#316], thanks [@jfmengels])Changelog
[1.7.0] - 2016-05-06
newline-after-import
], new rule. ([#245], thanks [@singles])optionalDependencies
option to [no-extraneous-dependencies
] to allow/forbid optional dependencies ([#266], thanks [@jfmengels]).newlines-between
option to [order
] rule ([#298], thanks [@singles])no-mutable-exports
] rule ([#290], thanks [@josh])import/extensions
setting]: a list of file extensions to parse as modules
and search for export
s. If unspecified, all extensions are considered valid (for now).
In v2, this will likely default to ['.js', MODULE_EXT]
. ([#297], to fix [#267])extensions
]: fallback to source path for extension enforcement if imported
module is not resolved. Also, never report for builtins (i.e. path
). ([#296])Changelog
[1.6.1] - 2016-04-28
no-named-as-default-member
]: don't crash on rest props. ([#281], thanks [@SimenB])null
to path
functions.
Thanks to [@strawbrary] for bringing this up ([#272]) and adding OSX support to the Travis
config ([#288]).Changelog
[1.6.0] - 2016-04-25
no-named-as-default-member
] to warnings
canned configno-extraneous-dependencies
] rule ([#241], thanks [@jfmengels])extensions
] rule ([#250], thanks [@lo1tuma])no-nodejs-modules
] rule ([#261], thanks [@jfmengels])order
] rule ([#247], thanks [@jfmengels])resolve.fallback
config option in the webpack resolver ([#254])imports-first
] now allows directives (i.e. 'use strict'
) strictly before
any imports ([#256], thanks [@lemonmade])named
] now properly ignores the source module if a name is re-exported from
an ignored file (i.e. node_modules
). Also improved the reported error. (thanks to [@jimbolla] for reporting)no-named-as-default-member
] had a crash on destructuring in loops (thanks for heads up from [@lemonmade])