github import-js/eslint-plugin-import v2.32.0

2 months ago

Added

  • add enforce-node-protocol-usage rule and import/node-version setting (#3024, thanks @GoldStrikeArch and @sevenc-nanashi)
  • add TypeScript types (#3097, thanks @G-Rath)
  • extensions: add `pathGroupOverrides to allow enforcement decision overrides based on specifier (#3105, thanks @Xunnamius)
  • order: add sortTypesGroup option to allow intragroup sorting of type-only imports (#3104, thanks @Xunnamius)
  • order: add newlines-between-types option to control intragroup sorting of type-only imports (#3127, thanks @Xunnamius)
  • order: add consolidateIslands option to collapse excess spacing for aesthetically pleasing imports (#3129, thanks @Xunnamius)

Fixed

  • no-unused-modules: provide more meaningful error message when no .eslintrc is present (#3116, thanks @michaelfaith)
  • configs: added missing name attribute for eslint config inspector (#3151, thanks @NishargShah)
  • order: ensure arcane imports do not cause undefined behavior (#3128, thanks @Xunnamius)
  • order: resolve undefined property access issue when using named ordering (#3166, thanks @Xunnamius)
  • enforce-node-protocol-usage: avoid a crash with some TS code (#3173, thanks @ljharb)
  • order: codify invariants from docs into config schema (#3152, thanks @Xunnamius)

Changed

  • [Docs] extensions, order: improve documentation (#3106, thanks @Xunnamius)
  • [Docs] add flat config guide for using tseslint.config() (#3125, thanks @lnuvy)
  • [Docs] add missing comma (#3122, thanks @RyanGst)
  • [readme] Update flatConfig example to include typescript config (#3138, thanks @intellix)
  • [Refactor] order: remove unnecessary negative check (#3167, thanks @JounQin)
  • [Docs] no-unused-modules: add missing double quote (#3191, thanks @albertpastrana)
  • [Docs] no-restricted-paths: clarify wording and fix errors (#3172, thanks @greim)

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

NewReleases is sending notifications on new releases.