Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-import

Package Overview
Dependencies
Maintainers
3
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-import - npm Package Versions

1
14

2.0.0

Diff

Changelog

Source

[2.0.0]! - 2016-09-30

Added

  • [unambiguous] rule: report modules that are not unambiguously ES modules.
  • recommended shared config. Roughly errors and warnings mixed together, with some parserOptions in the mix. ([#402])
  • react shared config: added jsx: true to parserOptions.ecmaFeatures.
  • Added [no-webpack-loader-syntax] rule: forbid custom Webpack loader syntax in imports. ([#586], thanks [@fson]!)
  • Add option newlines-between: "ignore" to [order] ([#519])
  • Added [no-unassigned-import] rule ([#529])

Breaking

  • [import/extensions setting] defaults to ['.js']. ([#306])
  • [import/ignore setting] defaults to nothing, and ambiguous modules are ignored natively. This means importing from CommonJS modules will no longer be reported by [default], [named], or [namespace], regardless of import/ignore. ([#270])
  • [newline-after-import]: Removed need for an empty line after an inline require call ([#570])
  • [order]: Default value for newlines-between option is now ignore ([#519])

Changed

  • imports-first is renamed to [first]. imports-first alias will continue to exist, but may be removed in a future major release.
  • Case-sensitivity: now specifically (and optionally) reported by [no-unresolved]. Other rules will ignore case-mismatches on paths on case-insensitive filesystems. ([#311])

Fixed

  • [no-internal-modules]: support @-scoped packages ([#577]+[#578], thanks [@spalger])
benmosher
published 2.0.0-beta.1 •

benmosher
published 2.0.0-beta.0 •

benmosher
published 1.16.0 •

Changelog

Source

[1.16.0] - 2016-09-22

Added

  • Added [no-dynamic-require] rule: forbid require() calls with expressions. ([#567], [#568])
  • Added [no-internal-modules] rule: restrict deep package imports to specific folders. ([#485], thanks [@spalger]!)
  • [extensions]: allow override of a chosen default with options object ([#555], thanks [@ljharb]!)

Fixed

  • [no-named-as-default] no longer false-positives on export default from '...' ([#566], thanks [@preco21])
  • [default]: allow re-export of values from ignored files as default ([#545], thanks [@skyrpex])
benmosher
published 1.15.0 •

Changelog

Source

[1.15.0] - 2016-09-12

Added

  • Added an allow option to [no-nodejs-modules] to allow exceptions ([#452], [#509]).
  • Added [no-absolute-path] rule ([#530], [#538])
  • [max-dependencies] for specifying the maximum number of dependencies (both import and require) a module can have. (see [#489], thanks [@tizmagik])
  • Added glob option to config for [no-extraneous-dependencies], after much bikeshedding. Thanks, [@knpwrs]! ([#527])

Fixed

  • [no-named-as-default-member] Allow default import to have a property named "default" ([#507], [#508], thanks [@jquense] for both!)
benmosher
published 1.14.0 •

Changelog

Source

[1.14.0] - 2016-08-22

Added

  • [import/parsers setting]: parse some dependencies (i.e. TypeScript!) with a different parser than the ESLint-configured parser. ([#503])

Fixed

  • [namespace] exception for get property from namespace import, which are re-export from commonjs module ([#499] fixes [#416], thanks [@wKich])
benmosher
published 1.13.0 •

Changelog

Source

[1.13.0] - 2016-08-11

Added

  • allowComputed option for [namespace] rule. If set to true, won't report computed member references to namespaces. (see [#456])

Changed

  • Modified [no-nodejs-modules] error message to include the module's name ([#453], [#461])

Fixed

  • [import/extensions setting] is respected in spite of the appearance of imports in an imported file. (fixes [#478], thanks [@rhys-vdw])
benmosher
published 1.12.0 •

Changelog

Source

[1.12.0] - 2016-07-26

Added

  • [import/external-module-folders setting]: a possibility to configure folders for "external" modules ([#444], thanks [@zloirock])
benmosher
published 1.11.1 •

Changelog

Source

[1.11.1] - 2016-07-20

Fixed

  • [newline-after-import] exception for switch branches with requires iff parsed as sourceType:'module'. (still [#441], thanks again [@ljharb])
benmosher
published 1.11.0 •

Changelog

Source

[1.11.0] - 2016-07-17

Added

  • Added an peerDependencies option to [no-extraneous-dependencies] to allow/forbid peer dependencies ([#423], [#428], thanks [@jfmengels]!).

Fixed

  • [newline-after-import] exception for multiple requires in an arrow function expression (e.g. () => require('a') || require('b')). ([#441], thanks [@ljharb])
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc