Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.26.0
->7.32.0
4.1.0
->4.3.0
2.23.2
->2.31.0
3.0.1
->3.4.1
Release Notes
eslint/eslint (eslint)
v7.32.0
Compare Source
3c78a7b
Chore: Adopteslint-plugin/prefer-message-ids
rule internally (#14841) (Bryan Mishkin)faecf56
Update: change reporting location forcurly
rule (refs #12334) (#14766) (Nitin Kumar)d7dc07a
Fix: ignore lines with empty elements (fixes #12756) (#14837) (Soufiane Boutahlil)1bfbefd
New: Exit on fatal error (fixes #13711) (#14730) (Antonios Katopodis)ed007c8
Chore: Simplify internalno-invalid-meta
rule (#14842) (Bryan Mishkin)d53d906
Docs: Prepare data for website to indicate rules with suggestions (#14830) (Bryan Mishkin)d28f2ff
Docs: Reference eslint-config-eslint to avoid potential for staleness (#14805) (Brett Zamir)8be8a36
Chore: Adopteslint-plugin/require-meta-docs-url
rule internally (#14823) (Bryan Mishkin)f9c164f
Docs: New syntax issue template (#14826) (Nicholas C. Zakas)eba0c45
Chore: assertions on reporting loc inunicode-bom
(refs #12334) (#14809) (Nitin Kumar)ed945bd
Docs: fix multiple broken links (#14833) (Sam Chen)60df44c
Chore: useactions/setup-node@v2
(#14816) (Nitin Kumar)6641d88
Docs: Update README team and sponsors (ESLint Jenkins)v7.31.0
Compare Source
efdbb12
Upgrade: @eslint/eslintrc to v0.4.3 (#14808) (Brandon Mills)a96b05f
Update: add end location to report inconsistent-return
(refs #12334) (#14798) (Nitin Kumar)e0e8e30
Docs: update BUG_REPORT template (#14787) (Nitin Kumar)39115c8
Docs: provide more context to no-eq-null (#14801) (gfyoung)9a3c73c
Docs: fix a broken link (#14790) (Sam Chen)ddffa8a
Update: Indicating the operator in question (#14764) (Paul Smith)bba714c
Update: Clarifying what changes need to be made in no-mixed-operators (#14765) (Paul Smith)b0d22e3
Docs: Mention benefit of providingmeta.docs.url
(#14774) (Bryan Mishkin)000cc79
Sponsors: Sync README with website (ESLint Jenkins)a6a7438
Chore: pin [email protected] (#14771) (Milos Djermanovic)v7.30.0
Compare Source
5f74642
Chore: don't check Program.start in SourceCode#getComments (refs #14744) (#14748) (Milos Djermanovic)19a871a
Docs: Suggest linting plugins for ESLint plugin developers (#14754) (Bryan Mishkin)aa87329
Docs: fix broken links (#14756) (Sam Chen)278813a
Docs: fix and add more examples for new-cap rule (fixes #12874) (#14725) (Nitin Kumar)ed1da5d
Update: ecmaVersion allows "latest" (#14720) (薛定谔的猫)104c0b5
Update: improve use-isnan rule to detectNumber.NaN
(fixes #14715) (#14718) (Nitin Kumar)b08170b
Update: Implement FlatConfigArray (refs #13481) (#14321) (Nicholas C. Zakas)f113cdd
Chore: upgrade eslint-plugin-eslint-plugin (#14738) (薛定谔的猫)1b8997a
Docs: Fix getRulesMetaForResults link syntax (#14723) (Brandon Mills)aada733
Docs: fix two broken links (#14726) (Sam Chen)8972529
Docs: Update README team and sponsors (ESLint Jenkins)v7.29.0
Compare Source
bfbfe5c
New: Add only to RuleTester (refs eslint/rfcs#73) (#14677) (Brandon Mills)c2cd7b4
New: Add ESLint#getRulesMetaForResults() (refs #13654) (#14716) (Nicholas C. Zakas)eea7e0d
Chore: remove duplicate code (#14719) (Nitin Kumar)6a1c7a0
Fix: allow fallthrough comment inside block (fixes #14701) (#14702) (Kevin Gibbons)a47e5e3
Docs: Add Mega-Linter to the list of integrations (#14707) (Nicolas Vuillamy)353ddf9
Chore: enable reportUnusedDisableDirectives in eslint-config-eslint (#14699) (薛定谔的猫)757c495
Chore: add some rules to eslint-config-eslint (#14692) (薛定谔的猫)c93a222
Docs: fix a broken link (#14697) (Sam Chen)655c118
Sponsors: Sync README with website (ESLint Jenkins)e2bed2e
Sponsors: Sync README with website (ESLint Jenkins)8490fb4
Sponsors: Sync README with website (ESLint Jenkins)ddbe877
Sponsors: Sync README with website (ESLint Jenkins)v7.28.0
Compare Source
1237705
Upgrade: @eslint/eslintrc to 0.4.2 (#14672) (Milos Djermanovic)123fb86
Docs: Add Feedback Needed triage description (#14670) (Nicholas C. Zakas)c545163
Update: support multiline /eslint-env/ directives (fixes #14652) (#14660) (薛定谔的猫)8d1e75a
Upgrade: glob-parent version in package.json (#14658) (Hamza Najeeb)1f048cb
Fix: no-implicit-coercion false positive withString()
(fixes #14623) (#14641) (Milos Djermanovic)d709abf
Chore: fix comment location in no-unused-vars (#14648) (Milos Djermanovic)e44ce0a
Fix: no-duplicate-imports allow unmergeable (fixes #12758, fixes #12760) (#14238) (Soufiane Boutahlil)bb66a3d
New: addgetPhysicalFilename()
method to rule context (fixes #11989) (#14616) (Nitin Kumar)2e43dac
Docs: fixno-sequences
example (#14643) (Nitin Kumar)958ff4e
Docs: add note for arrow functions in no-seq rule (#14578) (Nitin Kumar)e4f111b
Fix: arrow-body-style crash with object pattern (fixes #14633) (#14635) (Milos Djermanovic)ec28b5a
Chore: upgrade eslint-plugin-eslint-plugin (#14590) (薛定谔的猫)85a2725
Docs: Update README team and sponsors (ESLint Jenkins)v7.27.0
Compare Source
2c0868c
Chore: merge all html formatter files intohtml.js
(#14612) (Milos Djermanovic)9e9b5e0
Update: no-unused-vars false negative with comma operator (fixes #14325) (#14354) (Nitin Kumar)afe9569
Chore: use includes instead of indexOf (#14607) (Mikhail Bodrov)c0f418e
Chore: Remove lodash (#14287) (Stephen Wade)52655dd
Update: no-restricted-imports custom message for patterns (fixes #11843) (#14580) (Alex Holden)967b1c4
Chore: Fix typo in large.js (#14589) (Ikko Ashimine)2466a05
Sponsors: Sync README with website (ESLint Jenkins)fe29f18
Sponsors: Sync README with website (ESLint Jenkins)086c1d6
Chore: add more test cases forno-sequences
(#14579) (Nitin Kumar)6a2ced8
Docs: Update README team and sponsors (ESLint Jenkins)prettier/eslint-config-prettier (eslint-config-prettier)
v4.3.0
Compare Source
v4.2.0
Compare Source
import-js/eslint-plugin-import (eslint-plugin-import)
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])v2.29.1
Compare Source
Fixed
no-extraneous-dependencies
]: ignoreexport type { ... } from '...'
whenincludeTypes
isfalse
([#2919], thanks [@Pandemic1617])no-unused-modules
]: support export patterns with array destructuring ([#2930], thanks [@ljharb])tsconfig-paths
([#2447], thanks [@domdomegg])v2.29.0
Compare Source
Added
newline-after-import
]: new optionexactCount
and docs update ([#1933], thanks [@anikethsaha] and [@reosarevok])newline-after-import
]: fixexactCount
withconsiderComments
false positive, when there is a leading comment ([#2884], thanks [@kinland])v2.28.1
Compare Source
Fixed
order
]: revert breaking change to single nested group ([#2854], thanks [@yndajas])Changed
v2.28.0
Compare Source
Fixed
no-duplicates
]: remove duplicate identifiers in duplicate imports ([#2577], thanks [@joe-matsec])consistent-type-specifier-style
]: fix accidental removal of comma in certain cases ([#2754], thanks [@bradzacher])ExportMap
: ImproveExportMap.for
performance on larger codebases ([#2756], thanks [@leipert])no-extraneous-dependencies
]/TypeScript: do not error when importing inline type from dev dependencies ([#1820], thanks [@andyogo])newline-after-import
]/TypeScript: do not error when re-exporting a namespaced import ([#2832], thanks [@laurens-dg])order
]: partial fix for [#2687] (thanks [@ljharb])no-duplicates
]: Detect across type and regular imports ([#2835], thanks [@benkrejci])extensions
]: handle.
and..
properly ([#2778], thanks [@benasher44])no-unused-modules
]: improve schema (thanks [@ljharb])no-unused-modules
]: report error on binding instead of parent export ([#2842], thanks [@Chamion])Changed
no-duplicates
]: fix example schema ([#2684], thanks [@simmo])group-exports
]: fix syntax highlighting ([#2699], thanks [@devinrhode2])extensions
]: reference node ESM behavior ([#2748], thanks [@xM8WVqaG])exports-last
]: usearray.prototype.findlastindex
(thanks [@ljharb])no-anonymous-default-export
]: useobject.fromentries
(thanks [@ljharb])no-unused-modules
]: usearray.prototype.flatmap
(thanks [@ljharb])v2.27.5
Compare Source
Fixed
order]
: Fix group ranks order when alphabetizing ([#2674], thanks [@Pearce-Ropion])v2.27.4
Compare Source
Fixed
semver
should be a prod dep ([#2668])v2.27.3
Compare Source
Fixed
no-empty-named-blocks
]: rewrite rule to only check import declarations ([#2666])v2.27.2
Compare Source
Fixed
no-duplicates
]: do not unconditionally requiretypescript
([#2665])v2.27.1
Compare Source
Fixed
array.prototype.flatmap
should be a prod dep ([#2664], thanks [@cristobal])v2.27.0
Compare Source
Added
newline-after-import
]: addconsiderComments
option ([#2399], thanks [@pri1311])no-cycle
]: addallowUnsafeDynamicCyclicDependency
option ([#2387], thanks [@GerkinDev])no-restricted-paths
]: support arrays forfrom
andtarget
options ([#2466], thanks [@AdriAt360])no-anonymous-default-export
]: addallowNew
option ([#2505], thanks [@DamienCassou])order
]: AdddistinctGroup
option ([#2395], thanks [@hyperupcall])no-extraneous-dependencies
]: AddincludeInternal
option ([#2541], thanks [@bdwain])no-extraneous-dependencies
]: AddincludeTypes
option ([#2543], thanks [@bdwain])order
]: newalphabetize.orderImportKind
option to sort imports with same path based on their kind (type
,typeof
) ([#2544], thanks [@stropho])consistent-type-specifier-style
]: add rule ([#2473], thanks [@bradzacher])no-empty-named-blocks
] rule ([#2568], thanks [@guilhermelimak])prefer-default-export
]: add "target" option ([#2602], thanks [@azyzz228])no-absolute-path
]: add fixer ([#2613], thanks [@adipascu])no-duplicates
]: support inline type import withinlineTypeImport
option ([#2475], thanks [@snewcomer])Fixed
order
]: move nested imports closer to main import entry ([#2396], thanks [@pri1311])no-restricted-paths
]: fix an error message ([#2466], thanks [@AdriAt360])no-restricted-paths
]: useMinimatch.match
instead ofminimatch
to comply with Windows Native paths ([#2466], thanks [@AdriAt360])order
]: require with member expression could not be fixed if alphabetize.order was used ([#2490], thanks [@msvab])order
]: leave more space in rankings for consecutive path groups ([#2506], thanks [@Pearce-Ropion])no-cycle
]: add ExportNamedDeclaration statements to dependencies ([#2511], thanks [@BenoitZugmeyer])dynamic-import-chunkname
]: prevent false report on a valid webpack magic comment ([#2330], thanks [@mhmadhamster])export
]: do not error on TS export overloads ([#1590], thanks [@ljharb])no-unresolved
], [extensions
]: ignore type only exports ([#2436], thanks [@Lukas-Kullmann])ExportMap
: add missing param to function ([#2589], thanks [@Fdawgs])no-unused-modules
]:checkPkgFieldObject
filters boolean fields from checks ([#2598], thanks [@mpint])no-cycle
]: accept Flowtypeof
imports, just liketype
([#2608], thanks [@gnprice])no-import-module-exports
]: avoid a false positive for import variables ([#2315], thanks [@BarryThePenguin])Changed
named
]: Run all TypeScript test ([#2427], thanks [@ProdigySim])import/extensions
section ([#2440], thanks [@OutdatedVersion])order
]: use correct default value ([#2392], thanks [@hyperupcall])eslint-import-resolver-typescript
usage ([#2503], thanks [@JounQin])no-cycle
]: Add per-run caching of traversed paths ([#2419], thanks [@nokel81])ExportMap
: add caching after parsing for an ambiguous module ([#2531], thanks [@stenin-nikita])no-useless-path-segments
]: fix paths ([#2424], thanks [@s-h-a-d-o-w])no-cycle
]: add passing test cases ([#2438], thanks [@georeith])no-extraneous-dependencies
] improve performance using cache ([#2374], thanks [@meowtec])CONTRIBUTING.md
: mention inactive PRs ([#2546], thanks [@stropho])no-restricted-paths
]: Tests forimport type
statements ([#2459], thanks [@golergka])no-restricted-paths
]: fix one failingimport type
test case, submitted by [@golergka], thanks [@azyzz228]eslint-doc-generator
to v1.0.0 ([#2605], thanks [@bmish])no-cycle
], [no-internal-modules
], [no-restricted-paths
]: useanyOf
instead ofoneOf
(thanks [@ljharb], [@remcohaszing])v2.26.0
Compare Source
Added
no-named-default
], [no-default-export
], [prefer-default-export
], [no-named-export
], [export
], [named
], [namespace
], [no-unused-modules
]: support arbitrary module namespace names ([#2358], thanks [@sosukesuzuki])no-dynamic-require
]: support dynamic import with espree ([#2371], thanks [@sosukesuzuki])no-relative-packages
]: add fixer ([#2381], thanks [@forivall])Fixed
default
]:typescript-eslint-parser
: avoid a crash on exporting as namespace (thanks [@ljharb])export
]/TypeScript: false positive for typescript namespace merging ([#1964], thanks [@magarcia])no-duplicates
]: ignore duplicate modules in different TypeScript module declarations ([#2378], thanks [@remcohaszing])no-unused-modules
]: avoid a crash when processing re-exports ([#2388], thanks [@ljharb])Changed
no-nodejs-modules
]: add tests for node protocol URL ([#2367], thanks [@sosukesuzuki])default
], [no-anonymous-default-export
], [no-mutable-exports
], [no-named-as-default-member
], [no-named-as-default
]: add tests for arbitrary module namespace names ([#2358], thanks [@sosukesuzuki])no-unresolved
]: Fix RegExp escaping in readme ([#2332], thanks [@stephtr])namespace
]: try to improve performance ([#2340], thanks [@ljharb])order
]: TS code examples should use TS code blocks ([#2411], thanks [@MM25Zamanian])no-unresolved
]: fix link ([#2417], thanks [@kylemh])v2.25.4
Compare Source
Fixed
importType
: avoid crashing on a non-string' ([#2305], thanks [@ljharb])first
]: prevent crash when parsing angular templates ([#2210], thanks [@ljharb])importType
: properly resolve@/*
-aliased imports as internal ([#2334], thanks [@ombene])named
]/ExportMap
: handle named imports from CJS modules that use dynamic import ([#2341], thanks [@ludofischer])Changed
no-default-import
]: report on the token "default" instead of the entire node ([#2299], thanks [@pmcelhaney])order
]: Remove duplicate mention of default ([#2280], thanks [@johnthagen])eslint-module-utils
v2.25.3
Compare Source
Fixed
extensions
]: ignore unresolveable type-only imports ([#2270], [#2271], thanks [@jablko])importType
: fixisExternalModule
calculation ([#2282], thanks [@mx-bernhard])no-import-module-exports
]: avoid false positives with a shadowedmodule
orexports
([#2297], thanks [@ljharb])Changed
order
]: add type to the default groups ([#2272], thanks [@charpeni])importType
: combine redundantisScoped
andisScopedModule
(thanks [@ljharb])v2.25.2
Compare Source
Fixed
eslint-module-utils
for real this time ([#2255], thanks [@ljharb])v2.25.1
Compare Source
Fixed
eslint-module-utils
v2.25.0
Compare Source
Added
eslint
v8 ([#2191], thanks [@ota-meshi])no-unresolved
]: addcaseSensitiveStrict
option ([#1262], thanks [@sergei-startsev])no-unused-modules
]: add eslint v8 support ([#2194], thanks [Configuration
📅 Schedule: Branch creation - "on the first day of the month" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.