@typescript-eslint/parser
8.72.1 · 26 Oct 2026MIT180.1M / weekRepositoryHomepagenpmAtom feed
414 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 8.x · latest line
8.11.0
21 Oct 2024eslint-plugin: [no-base-to-string] add support for catching toLocaleString
eslint-plugin: [no-unnecessary-type-parameters] add suggestion fixer
eslint-plugin: [class-literal-property-style] don't report nodes with
overridekeyword
Features
eslint-plugin: [no-base-to-string] add support for catching toLocaleString
eslint-plugin: [no-unnecessary-type-parameters] add suggestion fixer
Fixes
eslint-plugin: [class-literal-property-style] don't report nodes with
overridekeywordrule-tester: allow custom filename outside directory
8.10.0
17 Oct 2024Support TypeScript 5.6
typescript-eslint: propagate
namefield to extended configs inconfighelper
8.9.0
14 Oct 2024rule-tester: hooks for test cases
eslint-plugin: [no-unnecessary-type-parameters] cannot assume variables are either type or value
eslint-plugin: [return-await] sync the behavior with await-thenable
Features
rule-tester: hooks for test cases
Fixes
eslint-plugin: [no-unnecessary-type-parameters] cannot assume variables are either type or value
eslint-plugin: [return-await] sync the behavior with await-thenable
eslint-plugin: [prefer-literal-enum-member] report a different error message when
allowBitwiseExpressionsis enabledeslint-plugin: [no-loop-func] sync from upstream base rule
eslint-plugin: [no-unused-vars] never report the naming of an enum member
eslint-plugin: correct use-at-your-own-risk type definitions
eslint-plugin: handle unions in await...for
rule-tester: merge provided
linterOptionsscope-manager: [no-use-before-define] do not treat nested namespace aliases as variable references
typescript-estree: improve project service error message when file extension missing from extraFileExtensions
visitor-keys: reorder
TSSatisfiesExpressionandTSTypeAssertion
8.8.1
7 Oct 2024eslint-plugin: stop warning on @ts-nocheck comments which aren't at the beginning of the file
typescript-estree: fix crash when running from a
node --evalscripttypescript-estree: ensure mjs/mts files are always be parsed as ESM
8.8.0
30 Sep 2024- removed
Remove
export type *in d.ts to support TS<5.0 eslint-plugin: [no-unnecessary-condition] add checkTypePredicates
eslint-plugin: [await-thenable] check for-await loop iteree
Features
eslint-plugin: [no-unnecessary-condition] add checkTypePredicates
eslint-plugin: [await-thenable] check for-await loop iteree
Fixes
- removed
Remove
export type *in d.ts to support TS<5.0 eslint-plugin: [no-unnecessary-template-expression] should underline template syntax with squiggly lines
eslint-plugin: [no-deprecated] max callstack exceeded when class implements itself
eslint-plugin: [no-misused-promises] check contextual type
eslint-plugin: [prefer-literal-enum-member] allow nested bitwise operations
type-utils: check for type parameters on
isBuiltinSymbolLikeRecurser()utils: update missing type information message
8.7.0
23 Sep 2024eslint-plugin: [no-unsafe-call] check calls of Function
eslint-plugin: [consistent-type-exports] check
export *exports to see if all exported members are typeseslint-plugin: properly coerce all types to string in
getStaticMemberAccessValue
Features
eslint-plugin: [no-unsafe-call] check calls of Function
eslint-plugin: [consistent-type-exports] check
export *exports to see if all exported members are types
Fixes
eslint-plugin: properly coerce all types to string in
getStaticMemberAccessValueeslint-plugin: [no-deprecated] report on imported deprecated variables
eslint-plugin: [no-confusing-non-null-assertion] check !in and !instanceof
types: add
NewExpressionas a parent ofSpreadElementutils: add missing entries to the RuleListener selectors list
8.6.0
16 Sep 2024Add
allowoption forrestrict-template-expressionseslint-plugin: [no-unnecessary-condition] check switch cases
eslint-plugin: [no-misused-promises] check array predicate return
Features
Add
allowoption forrestrict-template-expressionseslint-plugin: [no-unnecessary-condition] check switch cases
eslint-plugin: [no-misused-promises] check array predicate return
type-utils: isNullableType add Void logic
typescript-estree: disable plugin loading by default in project service
Fixes
eslint-plugin: [no-deprecated] don't report recursive types in destructuring assignment twice
eslint-plugin: [no-deprecated] report on deprecated variables used in destructuring assignment
eslint-plugin: [no-deprecated] report on deprecated properties with function-like types
eslint-plugin: [no-unnecessary-condition] properly reflect multiple negations in message
typescript-estree: don't throw on missing tsconfig.json by default in project service
8.5.0
9 Sep 2024eslint-plugin: [no-duplicate-type-constituents] prevent unnecessary
| undefinedfor optional parameterseslint-plugin: [no-unsafe-argument] differentiate error types
typescript-estree: default projectService.defaultProject to 'tsconfig.json'
Features
eslint-plugin: [no-duplicate-type-constituents] prevent unnecessary
| undefinedfor optional parameterseslint-plugin: [no-unsafe-argument] differentiate error types
typescript-estree: default projectService.defaultProject to 'tsconfig.json'
Fixes
eslint-plugin: [no-unnecessary-type-assertion] fix TSNonNullExpression fixer
eslint-plugin: [no-misused-promises] handle static method
eslint-plugin: [no-unnecessary-type-parameters] fix AST quick path scope analysis
eslint-plugin: [consistent-type-assertions] access parser services lazily
8.4.0
2 Sep 2024typescript-estree: make withoutProjectParserOptions generic
8.3.0
26 Aug 2024eslint-plugin: [no-deprecated] add rule
typescript-estree: replace
globbyw/fast-globtypescript-estree: reload project service once when file config isn't found
Features
eslint-plugin: [no-deprecated] add rule
typescript-estree: replace
globbyw/fast-globtypescript-estree: reload project service once when file config isn't found
Fixes
ast-spec: use
Expressionin argument ofThrowStatementeslint-plugin: [no-unnecessary-template-expression] add missing parentheses in autofix
eslint-plugin: [no-unnecessary-type-parameters] check mapped alias type arguments
utils: add missing
TSSatisfiesExpressioninRuleListenerBaseSelectorsutils: add
TSDeclareFunctiontofunctionTypeTypes
8.2.0
19 Aug 2024eslint-plugin: add suggestion to
require-awaitto removeasynckeywordtypescript-estree: special-case error for parserOptions.project and project references
eslint-plugin: [use-unknown-in-catch-callback-variable] flag second argument of
.then
Features
eslint-plugin: add suggestion to
require-awaitto removeasynckeywordtypescript-estree: special-case error for parserOptions.project and project references
Fixes
eslint-plugin: [use-unknown-in-catch-callback-variable] flag second argument of
.theneslint-plugin: [no-unnecessary-type-assertion] conflict with TS for variables used before assignment
eslint-plugin: delete in message if ReadOnly<string> is detected
eslint-plugin: [no-redundant-type-constituents] differentiate a types-error any from a true any
eslint-plugin: [no-unnecessary-type-parameters] check mapped constraint types if necessary
eslint-plugin: [no-unsafe-enum-comparison] add logic to see through intersections
typescript-estree: pass in tsconfigRootDir as cwd to getParsedConfigFile
8.1.0
12 Aug 2024eslint-plugin: [no-floating-promises] enable "add await" suggestion if ignoreVoid is true
eslint-plugin: [no-unsafe-return] check promise any
eslint-plugin: [no-misused-promises] check subtype methods against heritage type methods
Features
eslint-plugin: [no-floating-promises] enable "add await" suggestion if ignoreVoid is true
eslint-plugin: [no-unsafe-return] check promise any
eslint-plugin: [no-misused-promises] check subtype methods against heritage type methods
typescript-eslint: add JSDoc comments on generated configs
typescript-estree: restrict variable declarator definite/init combinations
Fixes
eslint-plugin: [no-unnecessary-type-parameters] skip checking function bodies for AST references
eslint-plugin: [member-ordering] get accessor member name & take into account
abstractand decoratoreslint-plugin: [prefer-optional-chain] wrong parenthesis fix output
eslint-plugin: [no-unnecessary-type-parameters] clarify message
utils: correct types to align with @types/eslint v9
8.0.1
5 Aug 2024eslint-plugin: [no-unused-vars] ignore imports used only as types
8.0.0
31 Jul 2024- breaking
typescript-estree: split TSMappedType typeParameter into constraint and key
- breaking
parser: always enable comment, loc, range, tokens
- breaking
eslint-plugin: [prefer-nullish-coalescing] change ignoreConditionalTests default to true
For more information, please see our blog post on this release: typescript-eslint.io/blog/announcing-typescript…
Raw Changelog
Breaking Changes
- breaking
typescript-estree: split TSMappedType typeParameter into constraint and key
- breaking
parser: always enable comment, loc, range, tokens
- breaking
eslint-plugin: [prefer-nullish-coalescing] change ignoreConditionalTests default to true
- breaking
typescript-estree: enable dot globs for project by default
- deprecated
eslint-plugin: deprecate no-loss-of-precision extension rule
- breaking
eslint-plugin: remove formatting/layout rules
- breaking
typescript-estree: remove slow deprecated and isolated programs
- breaking
typescript-estree: add TSEnumBody node for TSEnumDeclaration body
- breaking
typescript-estree: rename automaticSingleRunInference to disallowAutomaticSingleRunInference
- breaking
ast-spec: remove deprecated type params
- breaking
type-utils: remove IsNullableTypeOptions interface
- breaking
eslint-plugin: [no-unused-vars] align catch behavior to ESLint 9
- breaking
utils: swap LegacyESLint out for FlatESLint as ESLint export
- breaking
eslint-plugin: split no-empty-object-type out from ban-types and no-empty-interfaces
- breaking
utils: allow specifying additional rule meta.docs in RuleCreator
- breaking
eslint-plugin: apply initial config changes for v8
- breaking
eslint-plugin: replace ban-types with no-restricted-types, no-unsafe-function-type, no-wrapper-object-types
- breaking
typescript-estree: remove EXPERIMENTAL_useSourceOfProjectReferenceRedirect
- breaking
eslint-plugin: remove no-useless-template-literals
- breaking
type-utils: remove getTokenAtPosition
- breaking
eslint-plugin: [no-floating-promises] disable checkThenables by default for v8
- breaking
rule-tester: switched to flat config
Features
Stricter parent types for the AST
Speed up non-type-aware linting with project service
v8 integration branch
- removed
eslint-plugin: remove deprecated no-throw-literal rule
eslint-plugin: [no-floating-promises] add 'allowForKnownSafeCalls' option
eslint-plugin: [no-unused-vars] add
reportUnusedIgnorePatternoptioneslint-plugin: [no-unused-vars] support
ignoreClassWithStaticInitBlockeslint-plugin: [no-unused-vars] handle comma operator for assignments, treat for-of the same as for-in
eslint-plugin: [no-unused-vars] report if var used only in typeof
eslint-plugin: [return-await] add return-await to strict-type-checked preset
eslint-plugin: [no-unnecessary-type-parameters] promote to strict
rule-tester: support multipass fixes
type-utils: support intersection types in TypeOrValueSpecifier
typescript-estree: stabilize EXPERIMENTAL_useProjectService as projectService
typescript-estree: also remove projectService in withoutProjectParserOptions
typescript-estree: exposes ProjectService logs through the plugin
utils: add Linter configType constructor option
- removed
utils: remove deprecated context helpers
Fixes
Correct eslint-plugin's peerDependency on parser@8
Bring back in allowdefaultprojectforfiles rename
Disable
projectServiceindisabled-type-checkedshared configeslint-plugin: include alpha pre-releases in parser peer dependency
eslint-plugin: correct rules.d.ts types to not rely on non-existent imports
eslint-plugin: remove duplicate import
RuleModuleWithMetaDocseslint-plugin: [no-unnecessary-template-expression] do not render escaped strings in autofixes
eslint-plugin: [no-unused-vars] incorporate upstream changes around caught errors report messages
eslint-plugin: [no-misused-promises] perf: avoid getting types of variables/functions if the annotated type is obviously not a function
rule-tester: set configType to eslintrc in Linter options
rule-tester: re-apply updates from main
rule-tester: provide Linter a cwd in its constructor
type-utils: also check declared modules for package names in TypeOrValueSpecifier
types: allow ProjectServiceOptions for projectService
typescript-estree: pass extraFileExtensions to projectService
typescript-estree: only run projectService setHostConfiguration when needed
typescript-estree: specific error for parserOptions.project not including a file
typescript-estree: adds support for project services using extended config files
typescript-estree: factor tsconfigRootDir into allowDefaultProject
- 7.x
7.18.0
29 Jul 2024types: update ECMA versions
eslint-plugin: [no-unnecessary-type-assertion] prevent runtime error when asserting a variable declared in default TS lib
eslint-plugin: [unbound-method] report on destructuring in function parameters
Features
types: update ECMA versions
Fixes
eslint-plugin: [no-unnecessary-type-assertion] prevent runtime error when asserting a variable declared in default TS lib
eslint-plugin: [unbound-method] report on destructuring in function parameters
eslint-plugin: [no-duplicate-type-constituents] shouldn't report on error types
eslint-plugin: [strict-boolean-expressions] support branded booleans
7.17.0
22 Jul 2024- deprecated
eslint-plugin: [return-await] add option to report in error-handling scenarios only, and deprecate "never"
eslint-plugin: backport no-unsafe-function type, no-wrapper-object-types from v8 to v7
eslint-plugin: [no-floating-promises] check top-level type assertions (and more)
Features
eslint-plugin: backport no-unsafe-function type, no-wrapper-object-types from v8 to v7
- deprecated
eslint-plugin: [return-await] add option to report in error-handling scenarios only, and deprecate "never"
Fixes
eslint-plugin: [no-floating-promises] check top-level type assertions (and more)
eslint-plugin: [strict-boolean-expressions] consider assertion function argument a boolean context
eslint-plugin: [no-unnecessary-condition] false positive on optional private field
typescript-estree: don't infer single-run when --fix is in proces.argv
typescript-estree: disable single-run inference with extraFileExtensions
7.16.1
15 Jul 2024eslint-plugin: [no-unnecessary-type-parameters] descend into all parts of mapped types in no-unnecessary-type-parameters
7.16.0
8 Jul 2024ast-spec: add parent property to AccessorProperty node types
eslint-plugin: [no-unnecessary-type-parameters] port from v8 to v7
eslint-plugin: [no-unnecessary-parameter-property-assignment] add new rule
Features
ast-spec: add parent property to AccessorProperty node types
eslint-plugin: [no-unnecessary-type-parameters] port from v8 to v7
eslint-plugin: [no-unnecessary-parameter-property-assignment] add new rule
eslint-plugin: add support for nested namespaces to unsafe-member-access
eslint-plugin: [no-floating-promises] add checkThenables option
rule-tester: stricter rule test validations
Fixes
7.15.0
1 Jul 2024eslint-plugin: [array-type] detect
Readonly<string>caseeslint-plugin: back-port new rules around empty object types from v8
Disable
EXPERIMENTAL_useProjectServiceindisabled-type-checkedshared config
Features
eslint-plugin: [array-type] detect
Readonly<string>caseeslint-plugin: back-port new rules around empty object types from v8
Fixes
Disable
EXPERIMENTAL_useProjectServiceindisabled-type-checkedshared configeslint-plugin: [no-unsafe-return] differentiate a types-error any from a true any
eslint-plugin: [no-unsafe-call] differentiate a types-error any from a true any
utils: clean outdated
RuleTesterexport
7.14.1
24 Jun 2024Support TypeScript 5.5
ast-spec: tighter types and documentation for declaration/*
Keep warnAbountTSVersion in sync with package.json
Features
Support TypeScript 5.5
ast-spec: tighter types and documentation for declaration/*
Fixes
Keep warnAbountTSVersion in sync with package.json
eslint-plugin: [no-extraneous-class] handle abstract members
eslint-plugin: [prefer-nullish-coalescing] handle intersected primitive types
eslint-plugin: [no-invalid-this] support AccessorProperty
eslint-plugin: [prefer-nullish-coalescing] treat enums and literals as their underlying primitive types
eslint-plugin: [prefer-nullish-coalescing] ensure ternary fix does not remove parens
7.14.0
24 Jun 2024We followed this up soon after with 7.14.1 - see the combined release notes here github.com/typescript-eslint/typescript-eslint/…
We followed this up soon after with 7.14.1 - see the combined release notes here github.com/typescript-eslint/typescript-eslint/…
You can read about our versioning strategy and releases on our website.
7.13.1
17 Jun 2024Reading the note…
7.13.0
10 Jun 2024eslint-plugin: [no-dynamic-delete] allow all string literals as index
parser, typescript-estree: export withoutProjectParserOptions utility
typescript-estree: require
import = require()argument to be a string literal
Features
eslint-plugin: [no-dynamic-delete] allow all string literals as index
parser, typescript-estree: export withoutProjectParserOptions utility
typescript-estree: require
import = require()argument to be a string literaltypescript-estree: forbid
.body,.async,.generatorondeclare function
Fixes
ast-spec: function-call-like callee should be Expression not LeftHandSideExpression
eslint-plugin: [init-declarations] refine report locations
eslint-plugin: [no-base-to-string] make error message more nuanced
eslint-plugin: [no-unsafe-assignment] be more specific about error types
eslint-plugin: [no-magic-numbers] fix implementation of the
ignoreoptionscope-manager: handle index signature in class
7.12.0
3 Jun 2024eslint-plugin: [no-useless-template-literals] rename to
no-unnecessary-template-expression(deprecateno-useless-template-literals)eslint-plugin: [no-floating-promises] add option 'allowForKnownSafePromises'
rule-tester: check for parsing errors in suggestion fixes
Features
eslint-plugin: [no-useless-template-literals] rename to
no-unnecessary-template-expression(deprecateno-useless-template-literals)eslint-plugin: [no-floating-promises] add option 'allowForKnownSafePromises'
rule-tester: check for parsing errors in suggestion fixes
rule-tester: port
checkDuplicateTestCasesfrom ESLint
Fixes
eslint-plugin: [no-unnecessary-type-assertion] combine template literal check with
constvariable checkeslint-plugin: [dot-notation] fix false positive when accessing private/protected property with optional chaining
eslint-plugin: [explicit-member-accessibility] refine report locations
eslint-plugin: [no-unnecessary-type-assertion] declares are always defined, so always check
declareseslint-plugin: [prefer-literal-enum-member] allow using member it self on allowBitwiseExpressions
eslint-plugin: [return-await] clean up in-try-catch detection and make autofixes safe
eslint-plugin: [member-ordering] also TSMethodSignature can be get/set
types: correct typing ParserOptions
7.11.0
27 May 2024- deprecated
eslint-plugin: deprecate prefer-ts-expect-error in favor of ban-ts-comment
ast-spec: add
EmptyStatementtoStatementeslint-plugin: [consistent-type-assertions] prevent syntax errors on arrow functions
Features
- deprecated
eslint-plugin: deprecate prefer-ts-expect-error in favor of ban-ts-comment
Fixes
ast-spec: add
EmptyStatementtoStatementeslint-plugin: [consistent-type-assertions] prevent syntax errors on arrow functions
typescript-estree: truncate number of files printed by the maximum file error
7.10.0
20 May 2024eslint-plugin: [sort-type-constituents] support case sensitive sorting
eslint-plugin: [prefer-regexp-exec] fix heuristic to check whether regex may contain global flag
typescript-estree: don't add in-project files to defaultProjectMatchedFiles
Features
eslint-plugin: [sort-type-constituents] support case sensitive sorting
Fixes
eslint-plugin: [prefer-regexp-exec] fix heuristic to check whether regex may contain global flag
typescript-estree: don't add in-project files to defaultProjectMatchedFiles
utils: remove function form type from flat config
filesandignores
7.9.0
13 May 2024rule-tester: check for missing placeholder data in the message
Do not pass tsconfig canonical file name to typescript API to get program details for config file
eslint-plugin: [explicit-function-return-types] fix false positive on default parameters
7.8.0
29 Apr 2024rule-tester: assert suggestion messages are unique
typescript-estree: add maximumDefaultProjectFileMatchCount and wide allowDefaultProjectForFiles glob restrictions
eslint-plugin: [no-unsafe-argument] handle tagged templates
Features
rule-tester: assert suggestion messages are unique
typescript-estree: add maximumDefaultProjectFileMatchCount and wide allowDefaultProjectForFiles glob restrictions
Fixes
eslint-plugin: [no-unsafe-argument] handle tagged templates
eslint-plugin: [prefer-optional-chain] suggests optional chaining during strict null equality check
eslint-plugin: [consistent-type-assertions] handle tagged templates
eslint-plugin: [no-unsafe-return] handle union types
eslint-plugin: [no-unused-vars] clear error report range
utils: export ESLint backwards-compat functions
7.7.1
22 Apr 2024Reading the note…
7.7.0
15 Apr 2024eslint-plugin: replace
no-new-symbolwithno-new-native-nonconstructortypescript-estree: add defaultProject for project service
7.6.0
8 Apr 2024Add
namefield to shared configs and flat config typesBump npm dependency ranges
utils: add types for both flat and legacy eslint classes
Features
Add
namefield to shared configs and flat config typesBump npm dependency ranges
note: this does not include support for ESLint v9 - see #8211 for progress.
utils: add types for both flat and legacy eslint classes
Fixes
typescript-eslint: fix type errors when using
exactOptionalPropertyTypes
7.5.0
1 Apr 2024eslint-plugin: [no-floating-promises] handle TaggedTemplateExpression
eslint-plugin: [no-unnecessary-type-assertion] handle exactOptionalPropertyTypes compiler option
parser: disallow
errorOnTypeScriptSyntacticAndSemanticIssues
Fixes
eslint-plugin: [no-floating-promises] handle TaggedTemplateExpression
eslint-plugin: [no-unnecessary-type-assertion] handle exactOptionalPropertyTypes compiler option
parser: disallow
errorOnTypeScriptSyntacticAndSemanticIssuestypescript-eslint: improve support for legacy configs
7.4.0
25 Mar 2024- deprecated
eslint-plugin: deprecate no-throw-literal and add a renamed only-throw-error
eslint-plugin: [consistent-type-imports] ignore files with decorators, experimentalDecorators, and emitDecoratorMetadata
eslint-plugin: [no-unnecessary-type-arguments] handle tagged templates
Features
eslint-plugin: [consistent-type-imports] ignore files with decorators, experimentalDecorators, and emitDecoratorMetadata
Check out our blog post on this change for more information! typescript-eslint.io/blog/changes-to-consistent…
eslint-plugin: [no-unnecessary-type-arguments] handle tagged templates
- deprecated
eslint-plugin: deprecate no-throw-literal and add a renamed only-throw-error
Fixes
eslint-plugin: [prefer-optional-chain] address multipart nullish checks false positive
eslint-plugin: [prefer-optional-chain] properly disambiguate between
booleanandfalseeslint-plugin: [no-unnecessary-type-assertion] avoid remove const casting on template literals with expressions inside
typescript-eslint: declare peer dependency on
utilsto ensure npm correctly installs dependencies
7.3.1
18 Mar 2024Reading the note…
7.3.0
18 Mar 2024eslint-plugin: [restrict-template-expressions] add
allowArrayoptioneslint-plugin: add meta.docs.recommended setting for strict config options
eslint-plugin: add rule
use-unknown-in-catch-callback-variables
Note that this release enables rules to have more restrictive default options as configured in the
strictandstrict-type-checkedconfigs. See #8364 for more details.Features
eslint-plugin: [restrict-template-expressions] add
allowArrayoptioneslint-plugin: add meta.docs.recommended setting for strict config options
eslint-plugin: add rule
use-unknown-in-catch-callback-variableseslint-plugin: [prefer-reduce-type-parameter] supports tuple, union, intersection
eslint-plugin-internal: add internal lint rule no-relative-paths-to-internal-packages
typescript-estree: disallow switch statements with multiple default cases
utils: add parser name to thrown parser error message
Fixes
Correct
engines.nodeconstraints inpackage.jsoneslint-plugin: [unbound-method] check method definition in object literal using longhand form
eslint-plugin: [consistent-type-imports] handle imports without specifiers
eslint-plugin: [no-redundant-type-constituents] incorrectly marks & string as redundant
eslint-plugin: [no-unnecessary-qualifier] handle merge namespace with enum
eslint-plugin: [no-unused-expressions] false negatives when using assertions
eslint-plugin: [ban-ts-comment] more accurate handling of multiline comments
eslint-plugin: [explicit-function-return-type, explicit-module-boundary-types] improved checking for allowHigherOrderFunctions option
eslint-plugin: [class-literal-property-style] ignore property assigned in constructor
eslint-plugin: [no-unnecessary-type-assertion] fix false negative for const variable declarations
typescript-estree: fix the issue of single run inferring in the pnpm repo (#3811, #8702)
7.2.0
11 Mar 2024Support TS 5.4
eslint-plugin: [prefer-string-starts-ends-with] add allowSingleElementEquality option
eslint-plugin: expose *-type-checked-only configs for extension
Features
Support TS 5.4
eslint-plugin: [prefer-string-starts-ends-with] add allowSingleElementEquality option
Fixes
eslint-plugin: expose *-type-checked-only configs for extension
eslint-plugin: [member-ordering] report alphabetical sorting for all groups instead of just the first failing group
eslint-plugin: [no-var-requires, no-require-imports] support template literal
eslint-plugin: [no-useless-template-literals] detect TemplateLiteral
eslint-plugin: [no-unnecessary-condition] handle union array and tuple type
eslint-plugin: [prefer-find] support ternary branches in prefer-find
typescript-eslint: set
sourceType: "module"in base shared configtypescript-eslint: export
ConfigWithExtendstype
7.1.1
4 Mar 2024Reading the note…
7.1.0
26 Feb 2024eslint-plugin: add *-type-checked-only configs
eslint-plugin: [naming-convention] support the auto-accessor syntax
eslint-plugin: [consistent-return] add new rule
Features
eslint-plugin: add *-type-checked-only configs
eslint-plugin: [naming-convention] support the auto-accessor syntax
eslint-plugin: [consistent-return] add new rule
typescript-estree: add debug logs for useProgramFromProjectService
Fixes
eslint-plugin: [prefer-optional-chan] allow typeof for avoiding reference error
eslint-plugin: [no-misused-promises] improve check union types
eslint-plugin: [no-use-before-define] fix false positive type reference in as, satisfies
typescript-estree: use simpler absolutify behavior for project service client file paths
7.0.2
19 Feb 2024Reading the note…
7.0.1
12 Feb 2024Reading the note…
7.0.0
12 Feb 2024- breaking
⚠️ bump ESLint, NodeJS, and TS minimum version requirements
Add support for flat configs
eslint-plugin: [prefer-find] stop throwing type errors when converting symbols to numbers
Read more about this release: typescript-eslint.io/blog/announcing-typescript…
Auto-Generated Release Notes
Features
Add support for flat configs
Fixes
eslint-plugin: [prefer-find] stop throwing type errors when converting symbols to numbers
Breaking Changes
- breaking
⚠️ bump ESLint, NodeJS, and TS minimum version requirements
- 6.x
6.21.0
5 Feb 2024Export plugin metadata
Allow
parserOptions.project: falseeslint-plugin: add rule prefer-find
Features
Export plugin metadata
Allow
parserOptions.project: falseeslint-plugin: add rule prefer-find
typescript-estree: forbid duplicated accessibility modifiers
utils: improve eslint types
Fixes
ast-spec: add
JSXElementtype to theJSXAttribute['value']eslint-plugin: [no-unused-vars] don't report on types referenced in export assignment expression
eslint-plugin: [switch-exhaustiveness-check] better support for intersections, infinite types, non-union values
eslint-plugin: [consistent-type-imports] dont report on types used in export assignment expressions
eslint-plugin: [no-unnecessary-condition] handle left-hand optional with exactOptionalPropertyTypes option
eslint-plugin: [class-literal-property-style] allow getter when same key setter exists
eslint-plugin: [no-unnecessary-type-assertion] provide valid fixes for assertions with extra tokens before
askeywordrule-tester: fix a phantom dependency on the "semver" package
6.20.0
29 Jan 2024eslint-plugin: [member-ordering] allow easy reuse of the default ordering
eslint-plugin: [no-useless-template-literals] incorrect bigint autofix result
eslint-plugin: [prefer-nullish-coalescing] treat any/unknown as non-nullable
Features
eslint-plugin: [member-ordering] allow easy reuse of the default ordering
Fixes
eslint-plugin: [no-useless-template-literals] incorrect bigint autofix result
eslint-plugin: [prefer-nullish-coalescing] treat any/unknown as non-nullable
eslint-plugin: [no-useless-template-literals] report Infinity & NaN
eslint-plugin: [prefer-readonly] disable checking accessors
6.19.1
22 Jan 2024Reading the note…
6.19.0
15 Jan 2024eslint-plugin: [prefer-promise-reject-errors] add rule
eslint-plugin: [no-array-delete] add new rule
eslint-plugin: [no-useless-template-literals] add fix suggestions
Features
eslint-plugin: [prefer-promise-reject-errors] add rule
eslint-plugin: [no-array-delete] add new rule
eslint-plugin: [no-useless-template-literals] add fix suggestions
Fixes
eslint-plugin: [no-unnecessary-type-assertion] detect unnecessary non-null-assertion on a call expression
eslint-plugin: [no-unnecesary-type-assertion] treat unknown/any as nullable
typescript-estree: add JSDocParsingMode enum merge for typescript/lib/tsserverlibrary
typescript-estree: disallow
usingas the variable keyword forfor..inloopstypescript-estree: fix incorrect backwards-compat augmentation in TS 5.3
6.18.1
8 Jan 2024Reading the note…
6.18.0
6 Jan 2024eslint-plugin: [no-var-requires, no-require-imports] allow option
typescript-estree: throw on invalid update expressions
typescript-estree: throw error when CatchClause param contains initializer
6.17.0
1 Jan 2024eslint-plugin: [no-restricted-imports] prevent crash when
patternsorpathsin options are emptyeslint-plugin: [no-floating-promises] flag result of .map(async)
eslint-plugin: [switch-exhaustiveness-check] add an option to warn against a
defaultcase on an already exhaustiveswitch
Bug Fixes
eslint-plugin: [no-restricted-imports] prevent crash when
patternsorpathsin options are empty
Features
eslint-plugin: [no-floating-promises] flag result of .map(async)
eslint-plugin: [switch-exhaustiveness-check] add an option to warn against a
defaultcase on an already exhaustiveswitch
You can read about our versioning strategy and releases on our website.
6.16.0
25 Dec 2023- deprecated
eslint-plugin: deprecate formatting rules
eslint-plugin: [unbound-method] exempt all non-Promise built-in statics
typescript-estree: add allowDefaultProjectForFiles project service allowlist option
Bug Fixes
eslint-plugin: [unbound-method] exempt all non-Promise built-in statics
Features
- deprecated
eslint-plugin: deprecate formatting rules
typescript-estree: add allowDefaultProjectForFiles project service allowlist option
You can read about our versioning strategy and releases on our website.
6.15.0
18 Dec 2023eslint-plugin: [require-array-sort-compare] support toSorted
Features
eslint-plugin: [no-useless-template-literals] add new rule (#7957) (ff75785), closes #2846
eslint-plugin: [require-array-sort-compare] support toSorted
You can read about our versioning strategy and releases on our website.