Minor Changes
-
#617
b9754a9Thanks @thekhegay! - feat(consistent-type-specifier-style): addprefer-top-level-if-only-type-importsoption -
#640
db3333cThanks @thekhegay! - feat(export): check the members exported by declarations of one namespace together, and let interfaces of one name merge -
#632
42224c2Thanks @thekhegay! - feat(namespace): check heritage clauses against JSDoc@typedefand@callbacknames of local non-TypeScript modules -
#653
b325bc7Thanks @thekhegay! - feat(no-cycle): addincludeTypesoption to report cycles through type-only imports and re-exports -
#616
3b37ef7Thanks @thekhegay! - feat(no-duplicates): addconsiderReexportsoption to report and merge repeated named re-exports from the same module -
#628
5d7dc58Thanks @thekhegay! - feat(no-extraneous-dependencies): addtransitiveDependenciesoption to allow packages that a declared metapackage brings in -
#623
6fd3ccbThanks @thekhegay! - feat(no-relative-parent-imports): addmaxLevelsoption to allow imports up to a number of parent directories -
#625
3bc592eThanks @thekhegay! - feat(no-relative-parent-imports): addignorePrivateImportsoption to skip subpath imports declared inpackage.jsonimports -
#597
0ec4d59Thanks @RClaudiuM! - feat: addno-self-package-importrule to forbid a package from importing itself through its ownexportsmap -
#610
efd9228Thanks @thekhegay! - feat(no-unresolved): addincludeTypesoption to check type-only imports and exports -
#619
ad03322Thanks @thekhegay! - feat(no-unused-modules): list files withoutFileEnumerator, so the rule works with flat config without an eslintrc and on ESLint 10. Note: on ESLint 10 the rule was a no-op before and now reports, andsuppressMissingFileEnumeratorAPIWarningis deprecated and has no effect -
#629
54f117bThanks @thekhegay! - feat: addimport-x/parsers-nextsetting that lists parser instances with the file extensions they parse, entries for the same extension are tried in order as fallbacks -
#596
9afcfd9Thanks @SwastikTripathi! - feat(no-useless-path-segments): report a useless/indexin aliased imports of local files whennoUselessIndexis enabled -
#654
488c874Thanks @thekhegay! - feat: addno-self-importto therecommendedconfig as a warning -
#620
57f0024Thanks @thekhegay! - consistent-type-specifier-style: addtop-levelandinlineoption aliases forprefer-top-levelandprefer-inline -
#634
5996d63Thanks @SchroederSteffen! - feat(deps): add@typescript-eslint/parseras optional peer dependency
Patch Changes
-
#613
66d3ca6Thanks @JounQin! - chore: bumpunrs-resolvertov1.13.0 -
#618
23b3214Thanks @thekhegay! - fix(default): do not report default imports of files that only use dynamicimport()and may be CommonJS, keep reporting.mjs,.mtsandtype: modulefiles -
#648
7eb388aThanks @anubhavlal07! - fix(no-default-export, no-named-export): treatexport * as default fromas a default export -
#651
d2641e8Thanks @bardrop! - fix(exports-last): treat TypeScriptexport =andexport as namespaceas exports -
#637
edb69ddThanks @thekhegay! - fix(extensions): stop inferring an extension for an extensionless import of a declaration file that has no runtime file with that extension next to it, such asjsxfor#types/graphqlresolving totypes/graphql.d.ts. -
#659
c2015f6Thanks @JounQin! - fix(extensions): don't report a missing extension when the resolved target has no extension and no runtime file to carry one -
#656
e349170Thanks @thekhegay! - fix(first): skip MDX front matter (MDYaml,MDTomlfromeslint-mdx) before the first import, and move imports after it, not before -
#614
80cea17Thanks @JounQin! - fix(no-rename-default): derive the default export name from a parenthesized assignment, e.g.export default (Foo = function () {}), which is how prettier v3.9 formats such defaults -
#631
b2e6f08Thanks @thekhegay! - fix: classify a resolved path correctly when the linted file is reached through a symlink -
#624
0398562Thanks @thekhegay! - fix: matchignorepatterns withgoryflags against every import, not only every other one -
#622
110a135Thanks @thekhegay! - fix(newline-after-import): count empty lines before a statement's leading;in semicolon-free code -
#653
b325bc7Thanks @thekhegay! - fix(no-cycle): ignore type-only re-exports such asexport type { Foo } fromwhen the cycle starts in the linted file -
#627
9257464Thanks @thekhegay! - fix(no-duplicates): treat entry points that share one declaration file but have their owndeclare moduleblocks, likesvelteandsvelte/transition, as different modules -
#647
deebda9Thanks @bardrop! - fix(no-duplicates): don't merge a later import into a side-effect import likeimport './setup', sinceordercould then move it and run the module later -
#643
8117fd1Thanks @thekhegay! - fix(no-duplicates): keep the whole first import in the fix range, so@typescript-eslint/consistent-type-importscannot turn merged value imports type-only in the same pass -
#646
253ff7bThanks @shivangithaker-0510! - fix(no-empty-named-blocks): ignore the import attributes block, soimport Default from 'mod' with {}is no longer reported and broken by the fix, andimport 'mod' with {}no longer crashes the rule -
#626
1a70ac8Thanks @bardrop! - fix(no-restricted-paths): resolve globexceptpatterns againstbasePath, liketargetandfrom -
#650
8188e1eThanks @thekhegay! - fix: dropdocs.recommendedfrom rules that are not in therecommendedconfig -
#660
4819264Thanks @JounQin! - fix(deps): bumpeslint-import-contextto v0.2.2