@typescript-eslint/typescript-estree
8.73.0 · 16 Nov 2026MIT224M / weekRepositoryHomepagenpmAtom feed
417 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 5.x
5.21.0
25 Apr 2022eslint-plugin: [no-misused-promises] prioritize false returns when checking whether a function returns only void
eslint-plugin: [no-namespace] fix false positive for exported namespaces when allowDeclarations=true
eslint-plugin: [space-infix-ops] fix no error when right type is function
Bug Fixes
eslint-plugin: [no-misused-promises] prioritize false returns when checking whether a function returns only void
eslint-plugin: [no-namespace] fix false positive for exported namespaces when allowDeclarations=true
eslint-plugin: [space-infix-ops] fix no error when right type is function
Features
eslint-plugin: [parameter-properties] add rule to replace
no-parameter-properties
5.20.0
18 Apr 2022eslint-plugin: [no-magic-numbers] ignoreTypeIndexes option
5.18.0
4 Apr 2022eslint-plugin: method-signature-style respect getter signature
visitor-keys: add missing visitor keys
eslint-plugin: [no-shadow] ignoreOnInitialization option
Bug Fixes
eslint-plugin: method-signature-style respect getter signature
visitor-keys: add missing visitor keys
Features
eslint-plugin: [no-shadow] ignoreOnInitialization option
eslint-plugin: [no-this-alias] report on assignment expressions
5.17.0
28 Mar 2022eslint-plugin: [no-unused-vars] add destructuredArrayIgnorePattern options
5.16.0
21 Mar 2022eslint-plugin: [consistent-type-assertions] enforce assertionStyle for
constassertionsscope-manager: incorrect reference for this within a jsx identifier
utils: RuleTester: Only call afterAll if defined
Bug Fixes
eslint-plugin: [consistent-type-assertions] enforce assertionStyle for
constassertionsscope-manager: incorrect reference for this within a jsx identifier
utils: RuleTester: Only call afterAll if defined
Features
eslint-plugin: [prefer-optional-chain] support logical with empty object
5.15.0
14 Mar 2022parser: add
parserOptions.emitDecoratorMetadata
5.14.0
7 Mar 2022eslint-plugin: [naming-convention] cover case that requires quotes
eslint-plugin: [no-misused-promises] factor thenable returning function overload signatures
eslint-plugin: [prefer-readonly-parameter-types] handle class sharp private field and member without throwing error
Bug Fixes
eslint-plugin: [naming-convention] cover case that requires quotes
eslint-plugin: [no-misused-promises] factor thenable returning function overload signatures
eslint-plugin: [prefer-readonly-parameter-types] handle class sharp private field and member without throwing error
eslint-plugin: [return-await] correct autofixer in binary expression
Features
eslint-plugin: [no-misused-promises] add granular options within
checksVoidReturnsTypeScript 4.6
5.13.0
28 Feb 2022eslint-plugin: [sort-type-union-intersection-members] Wrap the constructorType in parentheses
eslint-plugin: [no-misused-promises] check more places for checksVoidReturn
eslint-plugin: add
no-redundant-type-constituentsrule
Bug Fixes
eslint-plugin: [sort-type-union-intersection-members] Wrap the constructorType in parentheses
Features
eslint-plugin: [no-misused-promises] check more places for checksVoidReturn
eslint-plugin: add
no-redundant-type-constituentsruleeslint-plugin: add
no-useless-empty-exportruleeslint-plugin: add extension rule
space-before-blockseslint-plugin: added member group support to member-ordering rule
utils: expose
ast-utils' helpersutils: extract
isNotTokenOfTypeWithConditionsout ofast-utils'predicates
5.12.1
21 Feb 2022eslint-plugin: [no-unnecessary-type-arguments] fix comparison of types
5.12.0
14 Feb 2022eslint-plugin: [init-declarations] fix nested namespace
eslint-plugin: [no-unnecessary-type-arguments] Use Symbol to check if it's the same type
Support nested object deconstructuring with type annotation
Bug Fixes
eslint-plugin: [init-declarations] fix nested namespace
eslint-plugin: [no-unnecessary-type-arguments] Use Symbol to check if it's the same type
Support nested object deconstructuring with type annotation
Features
eslint-plugin: [explicit-module-boundary-types ] add checking property definition for allowNames option
5.11.0
7 Feb 2022eslint-plugin: [no-magic-numbers] fix invalid schema merging
eslint-plugin: [non-nullable-type-assertion-style] fix false positive when asserting to a generic type that might be nullish
eslint-plugin: [explicit-function-return-type] add allowedNames
5.10.2
31 Jan 2022eslint-plugin: [no-restricted-imports] allow relative type imports with patterns configured
5.10.1
24 Jan 2022Note: Version bump only for package @typescript-eslint/typescript-eslint
5.10.0
17 Jan 2022eslint-plugin: [explicit-function-return-type] support AllowTypedFunctionExpression within AllowHigherOrderFunction
eslint-plugin: [no-extra-semi] false negatives when used with eslint 8.3.0
eslint-plugin: [no-invalid-this] crash when used with eslint 8.7.0
Bug Fixes
eslint-plugin: [explicit-function-return-type] support AllowTypedFunctionExpression within AllowHigherOrderFunction
eslint-plugin: [no-extra-semi] false negatives when used with eslint 8.3.0
eslint-plugin: [no-invalid-this] crash when used with eslint 8.7.0
eslint-plugin: [no-magic-numbers] handle bigint in class props
type-utils: check IndexSignature internals when checking isTypeReadonly (#4417) (ef3147c), closes #4410 #3714
type-utils: intersection types involving readonly arrays are now handled in most cases
type-utils: isTypeReadonly now handles conditional types
type-utils: union types always being marked as readonly
Features
Rename
experimental-utilstoutilsand makeexperimental-utilsan alias to the new packagetype-utils: make isTypeReadonly's options param optional
5.9.1
10 Jan 2022Note: Version bump only for package @typescript-eslint/typescript-eslint
5.9.0
3 Jan 2022We published a number of our internal eslint-plugin utilities for working with TypeScript types under the package
@typescript-eslint/type-utils5.8.1
27 Dec 2021eslint-plugin: [consistent-indexed-object-style] do not report for circular references
eslint-plugin: [consistent-type-definitions] correct fixer with declare keyword
eslint-plugin: [padding-line-between-statements] make function overloading is also processed
5.8.0
20 Dec 2021eslint-plugin: [no-implied-eval] improve performance
eslint-plugin: [padding-line-between-statements]
typeStatementTypes can't differenciate from variableeslint-plugin: [strict-boolean-expression] false positive for truthy boolean
Bug Fixes
eslint-plugin: [no-implied-eval] improve performance
eslint-plugin: [padding-line-between-statements]
typeStatementTypes can't differenciate from variableeslint-plugin: [strict-boolean-expression] false positive for truthy boolean
eslint-plugin:
array-typemarkAST_NODE_TYPES.TSBigIntKeywordas simpleeslint-plugin: handle method overloading in
semiexperimental-utils: support immutable members
Features
eslint-plugin: [no-throw-literal] add options to to disallow
any/unknowneslint-plugin: [restrict-plus-operand] add allowAny option
5.7.0
13 Dec 2021typescript-estree: type-only regression for consumers not yet on TS 4.5
eslint-plugin: [consistent-type-exports] support TS4.5 inline export specifiers
eslint-plugin: [consistent-type-imports] support TS4.5 inline import specifiers
Bug Fixes
typescript-estree: type-only regression for consumers not yet on TS 4.5
Features
eslint-plugin: [consistent-type-exports] support TS4.5 inline export specifiers
eslint-plugin: [consistent-type-imports] support TS4.5 inline import specifiers
eslint-plugin: [no-shadow] support TS4.5 inline import specifiers
5.6.0
6 Dec 2021scope-manager: support TS4.5 import/export specifier kind
scope-manager: update lib types
5.4.0
15 Nov 2021Correct issues with circular imports
eslint-plugin: [explicit-member-accessibility] private fields cannot have accessibility modifiers
eslint-plugin: [no-implied-eval] ignore locally declared functions
Bug Fixes
Correct issues with circular imports
eslint-plugin: [explicit-member-accessibility] private fields cannot have accessibility modifiers
eslint-plugin: [no-implied-eval] ignore locally declared functions
eslint-plugin: check optional chaining for floating promises
Landing page title duplication
Features
Add RuleCreator.withoutDocs
experimental-utils: add default for RuleModule TOptions generic
typescript-estree: support Import Assertions
typescript-estree: support private fields in-in syntax
typescript-estree: support type-only module specifiers
5.3.1
8 Nov 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
5.3.0
1 Nov 2021eslint-plugin: ignore private identifiers in explicit-module-boundary-types
eslint-plugin: skip seenTypes for unions in isTypeReadonly
experimental-utils: add
nameproperty to test case interface
Bug Fixes
eslint-plugin: ignore private identifiers in explicit-module-boundary-types
eslint-plugin: skip seenTypes for unions in isTypeReadonly
experimental-utils: add
nameproperty to test case interface
Features
eslint-plugin: [no-shadow] exclude external type declaration merging
experimental-utils: extract
isTokenOfTypeWithConditionsout ofast-utils'predicates
5.1.0
18 Oct 2021eslint-plugin: [no-restricted-imports]: report type-only imports properly
eslint-plugin: [strict-bool-expr] treat unconstrained generic as any
typescript-estree: support private optional property definition
Bug Fixes
eslint-plugin: [no-restricted-imports]: report type-only imports properly
eslint-plugin: [strict-bool-expr] treat unconstrained generic as any
typescript-estree: support private optional property definition
Features
experimental-utils: extract
ast-utils'predicates' helpers
5.0.0
11 Oct 2021- Breaking
Support for ESLint v8 (see individual packages for relevant breaking changes).
- Breaking
Drop support for Node v10 - required node version is now
^12.22.0 || ^14.17.0 || >=16.0.0. - Breaking
Drop Support for ESLint v5
Breaking Release Notes
All Packages
- Breaking
Support for ESLint v8 (see individual packages for relevant breaking changes).
- Breaking
Drop support for Node v10 - required node version is now
^12.22.0 || ^14.17.0 || >=16.0.0.Node v10 was EOL'd in April 2021, and ESLint v8 dropped support for it too.
- Breaking
Drop Support for ESLint v5
ESLint v5 is now 3 years old - why are you still using it? Upgrade to at least ESLint v6.
ESLint-Plugin
- Breaking
Changes to the recommended rule set - see #3746
- Breaking
Remove
objectfrom the default ban listThis has been a point of contention for a while - I originally added it because TS currently makes it impossible to narrow the type nicely. However there ultimately isn't a good alternative to this type for many usecases. As such we're removing the default ban. If you want to continue banning it, you can configure the rule to do so.
- Breaking
Align schema with ESLint v8
Should be pretty transparent unless you were using an invalid config.
- Breaking
Now checks abstract members
- Breaking
Add support for getters and setters
This will likely cause your codebase's sort orders to change if you're using the default config.
- Breaking
Rule has been deleted
You should instead use
@typescript-eslint/no-unused-varsinstead! It has had full and awesome support for TypeScript since v4.9.0 - and it doesn't require type information!
Experimental-Utils
- Breaking
Remove
SourceCode#getCommentsAPI from ESLint types.This API was deprecated in ESLint v4, and its usage will error in ESLint v8.
- Breaking
Support ESLint v8:
CLIEngineis now conditionallyundefined. It was deprecated in v7 and removed in v8. If you're still using it, you should upgrade to theESLintAPI.Remove
meta.docs.category. ESLint has removed this from their core rules as it wasn't ever very useful and was always poorly done. We have followed suit and removed it from our types and our rules.
TypeScript-ESTree / AST-Spec
- Breaking
Change
.sourceofExportNamedDeclaration,ExportAllDeclarationandImportDeclarationtoStringLiteraland add parse-time errors.This ensures we're aligned with ESTree and producing the correct AST.
- Breaking
Remove
TSParenthesizedTypenode.This node was added when this project was first created because the TS-AST includes this node. However it ultimately conveys no actual AST meaning (just like parentheses in non-type code). Babel removed this node earlier this year.
We expect rules will continue to "just work". In a lot of cases rules will work better as they no longer need manual checks to "look past" the useless node.
- Breaking
Remove legacy option
useJSXTextNode.This option was added for compatibility between different ASTs a very long time ago - but all ASTs have converged on using
JSXText- so you should be using that too.
- Breaking
Align class features AST with ESTree. This aligns with ESLint v8.
ClassPropertyis now calledPropertyDefinitionTSAbstractClassPropertyis now calledTSAbstractPropertyDefinition
- Breaking
TSAbstractPropertyDefinition.valueis now alwaysnull.It never made sense that this was allowed, and TS4.4 has now made this invalid.
- Breaking
Add full support for
PrivateIdentifier(#privateclass members)Previously we did not officially support them and emitted an "unstable" AST.
This will allow the community to build lint rules specifically targeting
#privatemembers.
- Breaking
Rename
LineAndColumnDatatoPosition(aligns naming with the ESTree spec docs)
Scope-Manager
- Breaking
Class properties with values now create a
'class-field-initializer'type scope around their value.This aligns with
eslint-scopev6.
Raw Changelog
Bug Fixes
eslint-plugin: [explicit-member-accessibility] report
TSAbstractPropertyDefinitionandTSAbstractMethodDefinitionproperlyeslint-plugin: update new rules from master
Update new rules from master
eslint-plugin: crash in no-dupe-class-members (v5)
experimental-utils: fix
isSetter's return typetypescript-estree: change
sourceof ExportNamedDeclaration to Literal from Expression
Features
ast-spec: bring
Nodeobjects in line with ESTreeeslint-plugin: remove
objectfromban-types' default types- Removed
eslint-plugin: removed value from abstract property nodes (#3765) (5823524), closes #3748
eslint-plugin: update recommended configs
Align class property representation with ESTree (#3806) (22fa5c0), closes #3430 #3077
eslint-plugin: [comma-dangle] align schema with ESLint v8
eslint-plugin: [member-ordering] add support for getters and setters
eslint-plugin: remove
no-unused-vars-experimentaleslint-plugin: [
ban-types] removeobjectfrom default options ([ae3fa900d5b4e1f557a52ca58d35a7d098d9efafRemove
meta.docs.categoryfrom rulesSupport
PrivateIdentifier(#3808) (0eefe5e), closes #3430 #2933experimental-utils: extract
isNodeOfTypesout ofast-utils'predicates- Removed
typescript-estree: remove legacy
useJSXTextNodeoption Support ESLint v8
experimental-utils: remove
getCommentsfromESLintSourceCodetypes
- 4.x
4.33.0
4 Oct 2021eslint-plugin: [lines-between-class-members] fix
exceptAfterOverloadfor abstract methodseslint-plugin: [no-confusing-void-expression] support optional chaining
eslint-plugin: [no-restricted-imports] fix crash when no options given
Bug Fixes
eslint-plugin: [lines-between-class-members] fix
exceptAfterOverloadfor abstract methodseslint-plugin: [no-confusing-void-expression] support optional chaining
eslint-plugin: [no-restricted-imports] fix crash when no options given
eslint-plugin: [non-nullable-type-assertion-style] false-positive with non-nullish
asassertions and typeseslint-plugin: [padding-line-between-statements] TSModuleBlock should change scope
eslint-plugin: [prefer-regexp-exec] check
RegExpwithout flagsexperimental-utils: add
getPhysicalFilename()toRuleContextexperimental-utils: require fix in suggestions
Features
experimental-utils: extract
isNodeOfTypeWithConditionsout ofast-utils'predicates
4.32.0
27 Sep 2021Support
'latest'asecmaVersion
4.31.2
20 Sep 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
4.31.1
13 Sep 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
4.31.0
6 Sep 2021ast-spec: remove duplicate union types from
Expression
4.30.0
30 Aug 2021typescript-estree: add support for class static blocks
4.29.3
23 Aug 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
4.29.2
16 Aug 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
4.29.1
9 Aug 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
4.29.0
2 Aug 2021typescript-estree: correct tty check
typescript-estree: ensure --fix works with singleRun mode
typescript-estree: add support for custom module resolution
4.28.5
26 Jul 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
4.28.4
19 Jul 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
4.28.3
12 Jul 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
4.28.2
5 Jul 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
4.28.1
28 Jun 2021Note: Version bump only for package @typescript-eslint/typescript-eslint
4.28.0
21 Jun 2021eslint-plugin: [prefer-regexp-exec] factor in union types
experimental-utils: expand
RuleTesterconfig propertiesexperimental-utils: fix
eslint-utils' negative predicates' return types
Bug Fixes
eslint-plugin: [prefer-regexp-exec] factor in union types
experimental-utils: expand
RuleTesterconfig propertiesexperimental-utils: fix
eslint-utils' negative predicates' return typesexperimental-utils: fix
eslint-utils' negative predicates' return types inast-utilsexperimental-utils: make keys for
ReferenceTrackeroptions optional
Features
experimental-utils: add
onlyproperty toRuleTestertypesexperimental-utils: expose ReferenceTracker.ESM
experimental-utils: use mergable interface for
settingsproperty
4.27.0
14 Jun 2021eslint-plugin: allow explicit any for no-unsafe-return
typescript-estree: allow providing more one than one existing program in config
typescript-estree: support override modifier for parameter property
Bug Fixes
eslint-plugin: allow explicit any for no-unsafe-return
typescript-estree: allow providing more one than one existing program in config
typescript-estree: support override modifier for parameter property
Features
ast-spec: specify
LogicalExpression'soperatortypeast-spec: specify
PunctuatorToken'svaluetypeeslint-plugin: [prefer-literal-enum-member] add allowBitwiseExpressions option
typescript-estree: add opt-in inference for single runs and create programs for projects up front
Allow user to provide TS program instance in parser options
Single-Run Detection
See the explanation for how to opt-in to this feature and how to provide feedback in this issue: #3528
4.26.0
31 May 2021eslint-plugin: [no-type-alias] consider type imports as alias types
eslint-plugin: [member-ordering] add callback as an ordering type of node
Bug Fixes
eslint-plugin: [no-type-alias] consider type imports as alias types
Generate library types for TypeScript v4.3 (#3460) (ed4776a), closes #3449
Features
eslint-plugin: [member-ordering] add callback as an ordering type of node
eslint-plugin: [space-infix-ops] Add support for Union and intersection of type declarations
scope-manager: reduce generated lib file size
4.25.0
24 May 2021Corrected no-unsupported-browser-code in roadmap as unimplemented
experimental-utils: fix
isAwaitKeywordpredicate in ast-utilstypescript-estree: [TS4.3] support overrides on class members
Bug Fixes
Corrected no-unsupported-browser-code in roadmap as unimplemented
experimental-utils: fix
isAwaitKeywordpredicate in ast-utils
Features
4.24.0
17 May 2021eslint-plugin: [dot-notation] optionally allow square bracket notation where an index signature exists in conjunction with
noPropertyAccessFromIndexSignature
4.23.0
10 May 2021scope-manager: fix visiting TSAsExpression in assignment
experimental-utils: Include
getCwd()inRuleContexttypeRefactor to split AST specification out as its own module
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.