This PR contains the following updates:
Release Notes
import-js/eslint-plugin-import (eslint-plugin-import)
Compare Source
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])
Compare Source
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
Compare Source
Added
- [
dynamic-import-chunkname
]: add allowEmpty
option to allow empty leading comments ([#2942], thanks [@JiangWeixian])
- [
dynamic-import-chunkname
]: Allow empty chunk name when webpackMode: 'eager' is set; add suggestions to remove name in eager mode ([#3004], thanks [@amsardesai])
- [
no-unused-modules
]: Add ignoreUnusedTypeExports
option ([#3011], thanks [@silverwind])
- add support for Flat Config ([#3018], thanks [@michaelfaith])
Fixed
Changed
- [Docs] [
no-extraneous-dependencies
]: Make glob pattern description more explicit ([#2944], thanks [@mulztob])
- [
no-unused-modules
]: add console message to help debug [#2866]
- [Refactor]
ExportMap
: make procedures static instead of monkeypatching exportmap ([#2982], thanks [@soryy708])
- [Refactor]
ExportMap
: separate ExportMap instance from its builder logic ([#2985], thanks [@soryy708])
- [Docs] [
order
]: Add a quick note on how unbound imports and --fix ([#2640], thanks [@minervabot])
- [Tests] appveyor -> GHA (run tests on Windows in both pwsh and WSL + Ubuntu) ([#2987], thanks [@joeyguerra])
- [actions] migrate OSX tests to GHA ([ljharb#37], thanks [@aks-])
- [Refactor]
exportMapBuilder
: avoid hoisting ([#2989], thanks [@soryy708])
- [Refactor]
ExportMap
: extract "builder" logic to separate files ([#2991], thanks [@soryy708])
- [Docs] [
order
]: update the description of the pathGroupsExcludedImportTypes
option ([#3036], thanks [@liby])
- [readme] Clarify how to install the plugin ([#2993], thanks [@jwbth])
Configuration
📅 Schedule: Branch creation - "after 4pm on friday,before 9am on monday,every weekend" in timezone Europe/Paris, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
This PR contains the following updates:
2.29.1
->2.32.0
Release Notes
import-js/eslint-plugin-import (eslint-plugin-import)
v2.32.0
Compare Source
Added
enforce-node-protocol-usage
] rule andimport/node-version
setting ([#3024], thanks [@GoldStrikeArch] and [@sevenc-nanashi])extensions
]: add `pathGroupOverrides to allow enforcement decision overrides based on specifier ([#3105], thanks [@Xunnamius])order
]: addsortTypesGroup
option to allow intragroup sorting of type-only imports ([#3104], thanks [@Xunnamius])order
]: addnewlines-between-types
option to control intragroup sorting of type-only imports ([#3127], thanks [@Xunnamius])order
]: addconsolidateIslands
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])order
]: ensure arcane imports do not cause undefined behavior ([#3128], thanks [@Xunnamius])order
]: resolve undefined property access issue when usingnamed
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
extensions
], [order
]: improve documentation ([#3106], thanks [@Xunnamius])tseslint.config()
([#3125], thanks [@lnuvy])order
]: remove unnecessary negative check ([#3167], thanks [@JounQin])no-unused-modules
]: add missing double quote ([#3191], thanks [@albertpastrana])no-restricted-paths
: clarify wording and fix errors ([#3172], thanks [@greim])v2.31.0
Compare Source
Added
order
]: allow validating named imports ([#3043], thanks [@manuth])extensions
]: add thecheckTypeImports
option ([#2817], thanks [@phryneas])Fixed
ExportMap
/ flat config: includelanguageOptions
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])Changed
no-relative-packages
]: fix typo ([#3066], thanks [@joshuaobrien])no-cycle
]: dont scc for each linted file ([#3068], thanks [@soryy708])no-cycle
]: adddisableScc
to docs ([#3070], thanks [@soryy708])RuleTester
([#3071], thanks [@G-Rath])no-restricted-paths
]: fix grammar ([#3073], thanks [@unbeauvoyage])no-default-export
], [no-named-export
]: add test case (thanks [@G-Rath])v2.30.0
Compare Source
Added
dynamic-import-chunkname
]: addallowEmpty
option to allow empty leading comments ([#2942], thanks [@JiangWeixian])dynamic-import-chunkname
]: Allow empty chunk name when webpackMode: 'eager' is set; add suggestions to remove name in eager mode ([#3004], thanks [@amsardesai])no-unused-modules
]: AddignoreUnusedTypeExports
option ([#3011], thanks [@silverwind])Fixed
no-extraneous-dependencies
]: allow wrong path ([#3012], thanks [@chabb])no-cycle
]: use scc algorithm to optimize ([#2998], thanks [@soryy708])no-duplicates
]: Removing duplicates breaks in TypeScript ([#3033], thanks [@yesl-kim])newline-after-import
]: fix considerComments option when require ([#2952], thanks [@developer-bandi])order
]: do not compare first path segment for relative paths ([#2682]) ([#2885], thanks [@mihkeleidast])Changed
no-extraneous-dependencies
]: Make glob pattern description more explicit ([#2944], thanks [@mulztob])no-unused-modules
]: add console message to help debug [#2866]ExportMap
: make procedures static instead of monkeypatching exportmap ([#2982], thanks [@soryy708])ExportMap
: separate ExportMap instance from its builder logic ([#2985], thanks [@soryy708])order
]: Add a quick note on how unbound imports and --fix ([#2640], thanks [@minervabot])exportMapBuilder
: avoid hoisting ([#2989], thanks [@soryy708])ExportMap
: extract "builder" logic to separate files ([#2991], thanks [@soryy708])order
]: update the description of thepathGroupsExcludedImportTypes
option ([#3036], thanks [@liby])Configuration
📅 Schedule: Branch creation - "after 4pm on friday,before 9am on monday,every weekend" in timezone Europe/Paris, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.