npm eslint-plugin-import 2.31.0
v2.31.0

one month ago

Added

Fixed

  • ExportMap / flat config: include languageOptions in context (#3052, thanks @michaelfaith)
  • no-named-as-default: Allow using an identifier if the export is both a named and a default export (#3032, thanks @akwodkiewicz)
  • export: False positive for exported overloaded functions in TS (#3065, thanks @liuxingbaoyu)
  • exportMap: export map cache is tainted by unreliable parse results (#3062, thanks @michaelfaith)
  • exportMap: improve cacheKey when using flat config (#3072, thanks @michaelfaith)
  • adjust "is source type module" checks for flat config (#2996, thanks @G-Rath)

Changed

  • [Docs] no-relative-packages: fix typo (#3066, thanks @joshuaobrien)
  • [Performance] no-cycle: dont scc for each linted file (#3068, thanks @soryy708)
  • [Docs] no-cycle: add disableScc to docs (#3070, thanks @soryy708)
  • [Tests] use re-exported RuleTester (#3071, thanks @G-Rath)
  • [Docs] no-restricted-paths: fix grammar (#3073, thanks @unbeauvoyage)
  • [Tests] no-default-export, no-named-export: add test case (thanks @G-Rath)

Don't miss a new eslint-plugin-import release

NewReleases is sending notifications on new releases.