@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.
- 3.x
3.1.0
1 Jun 2020eslint-plugin: [explicit-module-boundary-types] don't check returned functions if parent function has return type
eslint-plugin: [no-unnecessary-condition] handle comparison of any, unknown and loose comparisons with nullish values
eslint-plugin: [no-unnecessary-condition] improve optional chain handling
Bug Fixes
eslint-plugin: [explicit-module-boundary-types] don't check returned functions if parent function has return type
eslint-plugin: [no-unnecessary-condition] handle comparison of any, unknown and loose comparisons with nullish values
eslint-plugin: [no-unnecessary-condition] improve optional chain handling
eslint-plugin: [no-unnecessary-condition] improve optional chain handling 2 - electric boogaloo
eslint-plugin: [no-unused-expressions] ignore import expressions
eslint-plugin: [no-var-requires] false negative for TSAsExpression and MemberExpression
experimental-utils: downlevel type declarations for versions older than 3.8
Features
eslint-plugin: [ban-ts-comments] add "allow-with-description" option
eslint-plugin: [ban-types] allow selective disable of default options with
falsevalueeslint-plugin: [explicit-module-boundary-types] improve accuracy and coverage
3.0.2
27 May 2020Regression for eslint v6
3.0.1
25 May 2020eslint-plugin: [naming-convention] handle no options correctly
eslint-plugin: [no-throw-literal] handle intersection and union types
eslint-plugin: [unbound-method] fix crash due to missing
Intl
Bug Fixes
eslint-plugin: [naming-convention] handle no options correctly
eslint-plugin: [no-throw-literal] handle intersection and union types
eslint-plugin: [unbound-method] fix crash due to missing
Intlexperimental-utils: export
CLIEngine&ESLinttypescript-estree: handle
BigIntwith_numeric separatortypescript-estree: mark TS 3.8 and 3.9 as "supported" (#2057) (5eedbff), closes #1436 #1436
3.0.0
21 May 2020- Breaking
eslint-recommendedconfig - Breaking
recommendedconfig - Breaking
recommended-requiring-typechecking
This major release has been a long time coming! We've been saving up breaking changes for a while now, waiting for the ESLint v7 release which we knew would deprecate support for node version 8.
Due to our weekly release cadence, this major release mostly contains breaking changes!
Breaking Changes
Dropped support for Node version 8 (#1420)
In line with ESLint v7 - we've also dropped explicit support for node version 8.
This version of node has been end of life since 2019-12-31.
We no longer test against the version, so we provide no guarantees about whether or not future versions of our tooling will work on it.Dropped support for TypeScript 3.2 (#2004)
Old TS versions cause us maintenance pain as we work on integrating tightly with the TypeScript APIs for performance and stability reasons.
As such we've updated our required TS version range to require a minimum of
>=3.3.1.Each version of TS brings bugfixes and features, but most importantly they bring performance improvements. TS 3.9 is releasing with a host of performance improvements that will improve both your build times, and your lint times - so you should endeavour to upgrade if you can. We cannot provide any guarantees around the performance of old TS versions.
Configs
We've updated all of our configs! We've added new rules, old rules, and removed some stylistic rules.
Check out the linked issues for more information about added/removed rules:
- Breaking
eslint-recommendedconfig - Breaking
recommendedconfig - Breaking
recommended-requiring-typechecking
Additionally, both of the
recommendedandrecommended-requiring-typecheckingsets now inherit from theeslint-recommendedset. We noticed that the majority of the time, users were using the sets in tandem, so this just removes one line of config for everyone.I.e. you can now do the following:
extends: [ "recommended", - "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended" ]
Rules Changes
- Breaking
ban-typesgot a rework of its default ban list to provide some more sensible defaults and remove fixers that caused users issues. - Breaking
no-floating-promisesnow has theignoreVoidoption set to true by default. - Breaking
no-non-null-asserted-optional-chain(non-breaking) now supports TS 3.9's non-null assertion changes. - Breaking
no-unnecessary-condition: the
ignoreRHSoption has been removed. The rule will now only check the RHS when it matters (i.e. in boolean contexts). - Breaking
no-unnecessary-condition: the
checkArrayPredicatesoption has been removed. The rule will now always check array predicate functions. - Breaking
no-unnecessary-condition: the rule now will report if you do an equality check against
null/undefinedwhen the value is not nullable. - Breaking
prefer-nullish-coalescing: the fixer has been converted to a suggestion fixer always - it was unsafe in most cases.
- Breaking
prefer-nullish-coalescing: removed option
forceSuggestionFixer. - Breaking
prefer-optional-chain: the fixer has been converted to a suggestion fixer always - it was unsafe in a number of cases.
- Breaking
prefer-optional-chain: removed option
suggestInsteadOfAutofix. - Breaking
restrict-template-expressions: now has the
allowNumberoption set to true by default. - Breaking
restrict-template-expressions:
allowNullablehas been renamed toallowNullish. - Breaking
strict-boolean-expressionreceived a complete rework. The rule is now more configurable, with smarter defaults and more intuitive logic.
Rule Removals
The following deprecated rules have been deleted. Please switch to the listed alternative:
- Breaking
ban-ts-ignore- replaced byban-ts-comment - Breaking
camelcase- replaced bynaming-convention - Breaking
class-name-casing- replaced bynaming-convention - Breaking
generic-type-naming- replaced bynaming-convention - Breaking
interface-name-prefix- replaced bynaming-convention - Breaking
member-naming- replaced bynaming-convention - Breaking
no-untyped-public-signatures- replaced byexplicit-module-boundary-types
AST Changes
- Breaking
typescript-estreenow emits aTSEmptyBodyFunctionExpressionwhen it encounters a function expression without a body. Previously this was done inparser(for legacy reasons). This change should only affect users directly consumingtypescript-estree. - Breaking
When a method is marked as optional (
class Foo { name?() {} }) we now mark theMethodDefinition/TSAbstractMethodDefinitionas optional. Previously we marked thekeyof the node asoptional, but this only works if thekeyis anIdentifier, and didn't work in the case of a computedkey(class Foo { ['name']?() {} }). - Breaking
Import expressions (
import('foo')) now conform to the newly released ESTree spec, outputting as anImportExpression. - Breaking
BigInt literals now conform to the newly released ESTree spec, outputting as a
Literalwith a value of typebigint. - Breaking
See also the non-breaking change below - Better handling for TS 3.9's non-null assertion changes.
Parser Services
parserServicesare now always emitted from bothtypescript-estreeandparser, regardless of theparserOptions.projectconfiguration. (#716)This will allow you to consume parts of the TypeScript API that are generated at the file level, like variable usage diagnostics, without requiring full type information is generated for the project.
Part of this change includes a new boolean flag on the output:
parserServices.hasFullTypeInformationwhich istruewhenparserOptions.projectwas configured, andfalseotherwise.If you were using our
getParserServicesfunction fromexperimental-utils, then this will be handled automatically, and you will not notice any changes. If you built your own function for resolving theparserServices, then you'll have to update accordingly.ESLint Types (experimental-utils)
The old version of our ESLint types were based on those found in the DefinitelyTyped repo. There was a lot of missing documentation, missing properties, misnamed types.
As part of this release, we've reworked some of the internals to be much closer to the ESLint library itself. (#2023)
As part of this change, we have also added the types for the new
ESLintclass.SourceCode.isSpaceBetweenhas also been marked as optional, because it is only available in ESLint v6+Non-breaking changes
ESLint v7
We now have full support for ESLint v7 (#1550).
Better handling for TS 3.9's non-null assertion changes (#2036)
TS 3.9 introduced a breaking change for how non-null assertions are handled in optional chains.
Pre-3.9,
x?.y!.zmeans(x?.y).z- i.e. it essentially scrubbed the optionality from the chain
Post-3.9,x?.y!.zmeansx?.y!.z- i.e. it just asserts that the propertyyis non-null, not the result ofx?.yWe now emit a different AST when we work with TS3.9. Note that the AST is unchanged for TS3.8 and lower.
TS3.8
x?.y!.z // ^^^^^^^ MemberExpression // ^^^^^ TSNonNullAssertion // ^^^^ OptionalMemberExpression
TS3.9
x?.y!.z // ^^^^^^^ OptionalMemberExpression <-- NEW! // ^^^^^ TSNonNullAssertion // ^^^^ OptionalMemberExpression
Same for each versions
(x?.y)!.z // ^^^^^^^^^ MemberExpression // ^^^^^^^ TSNonNullAssertion // ^^^^^^ OptionalMemberExpression (x?.y!).z // ^^^^^^^^^ MemberExpression // ^^^^^^ TSNonNullAssertion // ^^^^^ OptionalMemberExpression
The same change applies for optional call expressions.
The rule
no-non-null-asserted-optional-chainwas also updated to handle this appropriately. It will no longer error onx?.y!.z, but it will still error on(x?.y)!.z.- 2.x
2.34.0
18 May 2020typescript-estree: fix handling of range/loc removal
eslint-plugin: [no-invalid-void-type] allow union of void and
allowInGenericTypeArgumentseslint-plugin: [restrict-template-expressions] improve error message
Bug Fixes
typescript-estree: fix handling of range/loc removal
Features
eslint-plugin: [no-invalid-void-type] allow union of void and
allowInGenericTypeArgumentseslint-plugin: [restrict-template-expressions] improve error message
experimental-utils: add
suggestionproperty for rule modules
2.33.0
12 May 2020experimental-utils: remove accidental dep on json-schema
eslint-plugin: add extension rule
lines-between-class-members
2.32.0
11 May 2020eslint-plugin: [no-base-to-string] support boolean in unions
eslint-plugin: [no-type-alias] handle readonly types in aliases
eslint-plugin: [no-unused-expressions] inherit
messagesfrom base rule
Bug Fixes
eslint-plugin: [no-base-to-string] support boolean in unions
eslint-plugin: [no-type-alias] handle readonly types in aliases
eslint-plugin: [no-unused-expressions] inherit
messagesfrom base rule
Features
Bump dependencies and align AST
2.31.0
4 May 2020eslint-plugin: [dot-notation] handle missing declarations
eslint-plugin: [method-signature-style] fix overloaded methods to an intersection type
eslint-plugin: [return-await] await in a normal function
Bug Fixes
eslint-plugin: [dot-notation] handle missing declarations
eslint-plugin: [method-signature-style] fix overloaded methods to an intersection type
eslint-plugin: [return-await] await in a normal function
eslint-plugin: [unbound-method] false positives for unary expressions
eslint-plugin: no-base-to-string boolean expression detect
Features
eslint-plugin: [member-ordering] add decorators support
eslint-plugin: [prefer-optional-chain] added option to convert to suggestion fixer
eslint-plugin: new extended rule 'no-invalid-this'
eslint-plugin-internal: add rule no-poorly-typed-ts-props
experimental-utils: expose our RuleTester extension
2.30.0
27 Apr 2020eslint-plugin: [prefer-string-starts-ends-with] check for negative start index in slice
eslint-plugin: fix no-base-to-string boolean literal check
eslint-plugin: add extension rule
dot-notation
Bug Fixes
eslint-plugin: [prefer-string-starts-ends-with] check for negative start index in slice
eslint-plugin: fix no-base-to-string boolean literal check
Features
eslint-plugin: add extension rule
dot-notationeslint-plugin: create
no-invalid-void-typeruleexperimental-utils: allow rule options to be a readonly tuple
2.29.0
20 Apr 2020eslint-plugin: [no-base-to-string] soft remove
ignoreTaggedTemplateExpressionsoptioneslint-plugin: [no-floating-promise] add option to ignore IIFEs
eslint-plugin: [restrict-template-expressions] add support for intersection types
Bug Fixes
eslint-plugin: [no-base-to-string] soft remove
ignoreTaggedTemplateExpressionsoption
Features
eslint-plugin: [no-floating-promise] add option to ignore IIFEs
eslint-plugin: [restrict-template-expressions] add support for intersection types
eslint-plugin: add extension rule
init-declarationseslint-plugin: add extension rule
keyword-spacing
2.28.0
13 Apr 2020eslint-plugin: [method-signature-style] handle multiline params
eslint-plugin: [no-empty-interface] use suggestion fixer for ambient contexts
eslint-plugin: [unbound-method] false positive on property function initializer
Bug Fixes
eslint-plugin: [method-signature-style] handle multiline params
eslint-plugin: [no-empty-interface] use suggestion fixer for ambient contexts
eslint-plugin: [unbound-method] false positive on property function initializer
eslint-plugin: [unbound-method] ignore assignments to methods
eslint-plugin: no-empty-interface autofix (#1865) (829a2f7), closes #1864
eslint-plugin: use
isTypeArrayTypeOrUnionOfArrayTypesutil for checking if type is array
Features
eslint-plugin: [ban-ts-comment] support
ts-expect-erroreslint-plugin: [consistent-type-assertions] always allow
constassertionseslint-plugin: [explicit-function-return-type] add option to allow concise arrows that start with void
eslint-plugin: feat(eslint-plugin): [explicit-module-boundary-types] add option
shouldTrackReferenceseslint-plugin: [no-base-to-string] add option to ignore tagged templates
eslint-plugin: [restrict-template-expressions] add option
allowAnyeslint-plugin: add rule
prefer-reduce-type-parametereslint-plugin: add rule
prefer-ts-expect-erroreslint-plugin: add rule no-unsafe-assignment
2.27.0
6 Apr 2020typescript-estree: add support for TS3.9 extra file extensions
2.26.0
30 Mar 2020eslint-plugin: [no-explicit-any] error with ignoreRestArgs
eslint-plugin: [no-unsafe-call] allow import expressions
eslint-plugin: [no-unsafe-return] error with <TS3.7
Bug Fixes
eslint-plugin: [no-explicit-any] error with ignoreRestArgs
eslint-plugin: [no-unsafe-call] allow import expressions
eslint-plugin: [no-unsafe-return] error with <TS3.7
Features
eslint-plugin-tslint: support tslint 6
typescript-estree: add option to ignore certain folders from glob resolution
2.24.0
16 Mar 2020typescript-estree: unnecessary program updates by removing timeout methods
typescript-estree: support 3.8
export * as ns
2.23.0
9 Mar 2020eslint-plugin: fix autofixer for computed properties
Bug Fixes
eslint-plugin: [prefer-readonly-parameter-types] handle recursive types (#1672) (e5db36f), closes #1665
eslint-plugin: [type-annotation-spacing] handle constructor types (#1664) (fbf1640), closes #1663
eslint-plugin: fix autofixer for computed properties
eslint-plugin: fix placeholder in
ban-ts-comment
Features
eslint-plugin: [no-unsafe-call] support tagged templates
eslint-plugin: [no-unsafe-member-access] report any typed computed prop access
eslint-plugin: add rule no-unsafe-call
eslint-plugin: add rule no-unsafe-member-access
eslint-plugin: add rule no-unsafe-return
typescript-estree: support 3.8 import/export type
2.22.0
2 Mar 2020eslint-plugin: [ban-types] add option extendDefaults
eslint-plugin: [default-param-last] handle param props
eslint-plugin: [no-implied-eval] correct logic for ts3.8
Bug Fixes
eslint-plugin: [ban-types] add option extendDefaults
eslint-plugin: [default-param-last] handle param props
eslint-plugin: [no-implied-eval] correct logic for ts3.8
Features
eslint-plugin: [explicit-member-accessibility] autofix no-public
eslint-plugin: [typedef] add variable-declaration-ignore-function
eslint-plugin: add new no-base-to-string rule
eslint-plugin: add prefer-readonly-parameters
eslint-plugin: additional annotation spacing rules for va…
2.21.0
24 Feb 2020eslint-plugin: [embt] ignore JSX callbacks
eslint-plugin: [no-floating-promises] handle finally callback
eslint-plugin: [typedef] allow array/object destructuring in for/of
Bug Fixes
eslint-plugin: [embt] ignore JSX callbacks
eslint-plugin: [no-floating-promises] handle finally callback
eslint-plugin: [typedef] allow array/object destructuring in for/of
typescript-estree: process.stdout can be undefined
Features
eslint-plugin: [return-await] add --fix support
2.20.0
17 Feb 2020eslint-plugin: [ban-types] allow banning null and undefined
eslint-plugin: [strict-boolean-expressions] refactor, add clearer error messages
2.19.2
10 Feb 2020Note: Version bump only for package @typescript-eslint/typescript-estree
2.19.1
10 Feb 2020eslint-plugin: [unbound-method] blacklist a few unbound natives
typescript-estree: ts returning wrong file with project references
2.19.0
3 Feb 2020eslint-plugin: [embt] fix allowTypedFunctionExpressions
eslint-plugin: [require-await] improve performance
typescript-estree: fix regression introduced
Bug Fixes
eslint-plugin: [embt] fix allowTypedFunctionExpressions
eslint-plugin: [require-await] improve performance
typescript-estree: fix regression introduced
typescript-estree: persisted parse and module none
Features
eslint-plugin: [no-extra-non-null-assert] add fixer
eslint-plugin: [no-float-prom] fixer + msg for ignoreVoid
eslint-plugin: [unbound-method] support bound builtins
eslint-plugin: add extension [no-dupe-class-members]
eslint-plugin: add no-unnecessary-boolean-literal-compare
eslint-plugin: add switch-exhaustiveness-check rule
eslint-plugin: support negative matches for
filter
2.18.0
27 Jan 2020Improve token types and add missing type guards
typescript-estree: error on unexpected jsdoc nodes
typescript-estree: fix identifier tokens typed as
Keyword
2.17.0
20 Jan 2020eslint-plugin: [naming-convention] handle empty array-pattern
eslint-plugin: [unbound-method] handling of logical expr
eslint-plugin: set default-param-last as an extension rule
Bug Fixes
eslint-plugin: [naming-convention] handle empty array-pattern
eslint-plugin: [unbound-method] handling of logical expr
eslint-plugin: set default-param-last as an extension rule
typescript-estree: correct type of
ArrayPattern.elements
Features
eslint-plugin: [naming-convention] allow not check format
eslint-plugin: [naming-convention] correct example
eslint-plugin: [no-extra-!-assert] flag ?. after !-assert
eslint-plugin: add explicit-module-boundary-types rule
eslint-plugin: add no-non-null-asserted-optional-chain
experimental-utils: expose getParserServices from utils
2.16.0
13 Jan 2020eslint-plugin: [no-magic-numbers] handle UnaryExpression for enums
eslint-plugin: [no-unnec-type-assert] handle JSX attributes
eslint-plugin: handle error classes using generics
Bug Fixes
eslint-plugin: [no-magic-numbers] handle UnaryExpression for enums
eslint-plugin: [no-unnec-type-assert] handle JSX attributes
eslint-plugin: handle error classes using generics
typescript-estree: fix persisted parse for relative paths
typescript-estree: parsing of deeply nested new files in new folder
typescript-estree: resolve path relative to tsconfigRootDir
Features
eslint-plugin: [no-unnec-cond] array predicate callbacks
eslint-plugin: add default-param-last rule
eslint-plugin: add rule naming-conventions
typescript-estree: add parserOption to turn on debug logs
typescript-estree: add strict type mapping to esTreeNodeToTSNodeMap
2.15.0
6 Jan 2020eslint-plugin: crash in no-unnecessary-type-arguments
typescript-estree: correct persisted parse for windows
eslint-plugin: [strict-bool-expr] add allowSafe option
Bug Fixes
eslint-plugin: crash in no-unnecessary-type-arguments
typescript-estree: correct persisted parse for windows
Features
eslint-plugin: [strict-bool-expr] add allowSafe option
eslint-plugin: add no-implied-eval
2.14.0
30 Dec 2019eslint-plugin: type assertion in rule no-extra-parens
typescript-estree: visit typeParameters in OptionalCallExpr
Add internal eslint plugin for repo-specific lint rules
2.13.0
23 Dec 2019eslint-plugin: [quotes] ignore backticks for Enum members
eslint-plugin: [type-annotation-spacing] typo in messages
eslint-plugin: add isTypeAssertion utility function
Bug Fixes
eslint-plugin: [quotes] ignore backticks for Enum members
eslint-plugin: [type-annotation-spacing] typo in messages
eslint-plugin: add isTypeAssertion utility function
eslint-plugin: use AST_NODE_TYPES enum instead of strings
typescript-estree: correct type of key for base nodes
Features
eslint-plugin: [ban-types] handle empty type literal {}
eslint-plugin: [no-use-before-define] opt to ignore enum
eslint-plugin: [pref-str-starts/ends-with] optional chain…
eslint-plugin: add no-extra-semi [extension]
eslint-plugin: add no-throw-literal [extension]
eslint-plugin: more optional chain support in rules
eslint-plugin-tslint: add fixer for config rule
typescript-estree: computed members discriminated unions
typescript-estree: tighten prop name and destructure types
2.12.0
16 Dec 2019eslint-plugin: [prefer-null-coal] fixer w/ mixed logicals
eslint-plugin: [quotes] ignore backticks for interface properties
eslint-plugin: [no-unnecessary-condition] check optional chaining
2.11.0
9 Dec 2019eslint-plugin: [brace-style] handle enum declarations
eslint-plugin: [member-ordering] add index signature
2.10.0
2 Dec 2019eslint-plugin: [no-empty-function] add missed node types
eslint-plugin: [no-untyped-pub-sig] ignore set return
eslint-plugin: [no-unused-expressions] ignore directives
Bug Fixes
eslint-plugin: [no-empty-function] add missed node types
eslint-plugin: [no-untyped-pub-sig] ignore set return
eslint-plugin: [no-unused-expressions] ignore directives
eslint-plugin: [prefer-optional-chain] allow $ in identifiers
eslint-plugin: [prefer-optional-chain] handle more cases
eslint-plugin: [return-await] allow Any and Unknown
eslint-plugin: [strict-bool-expr] allow nullish coalescing
typescript-estree: make FunctionDeclaration.body non-null
Features
eslint-plugin: [no-empty-func] private/protected construct
eslint-plugin: [no-non-null-assert] add suggestion fixer
eslint-plugin: [no-unnec-cond] support nullish coalescing
eslint-plugin: [prefer-null-coal] opt for suggestion fixer
experimental-utils: add isSpaceBetween declaration to Sou…
2.9.0
25 Nov 2019eslint-plugin: [no-dynamic-delete] correct invalid fixer for identifiers
eslint-plugin: [no-untyped-pub-sig] constructor return
eslint-plugin: [prefer-optional-chain] unhandled cases
Bug Fixes
eslint-plugin: [no-dynamic-delete] correct invalid fixer for identifiers
eslint-plugin: [no-untyped-pub-sig] constructor return
eslint-plugin: [prefer-optional-chain] unhandled cases
eslint-plugin: [req-await] crash on nonasync promise return
typescript-estree: fix synthetic default import
Features
eslint-plugin: [camelcase] add genericType option
eslint-plugin: [no-empty-interface] noEmptyWithSuper fixer
eslint-plugin: [no-extran-class] add allowWithDecorator opt
eslint-plugin: [no-unnece-cond] Add allowConstantLoopConditions
eslint-plugin: [restrict-plus-operands] check +=
Suggestion types, suggestions for no-explicit-any
eslint-plugin: add no-extra-non-null-assertion
eslint-plugin: add no-unused-vars-experimental
eslint-plugin: add prefer-nullish-coalescing
eslint-plugin: add return-await rule
eslint-plugin: add rule prefer-optional-chain
eslint-plugin: optional chain support in rules (part 1)
2.8.0
18 Nov 2019eslint-plugin: [camelcase] handle optional member expr
eslint-plugin: [indent] fix decorator type
eslint-plugin: [indent] handle empty generic declarations
Bug Fixes
eslint-plugin: [camelcase] handle optional member expr
eslint-plugin: [indent] fix decorator type
eslint-plugin: [indent] handle empty generic declarations
eslint-plugin: [no-type-alias] handle constructor aliases
eslint-plugin: [no-unnec-type-arg] throwing on call/new expr
eslint-plugin: [no-unnecessary-cond] fix naked type param
eslint-plugin: [nuta] correctly handle null/undefined separation
eslint-plugin: [require-await] better handle nesting
eslint-plugin: [unified-signatures] crash: cannot read pro…
eslint-plugin: disable base no-unused-expressions in all config
typescript-estree: correctly account for trailing slash in…
typescript-estree: options range loc being always true
Features
eslint-plugin: [no-type-alias] handle conditional types
eslint-plugin: add rule restrict-template-expressions
eslint-plugin: add space-before-function-paren [extension]
eslint-plugin: added new rule no-dynamic-delete
eslint-plugin: added new rule no-untyped-public-signature
2.7.0
11 Nov 2019eslint-plugin: crash fixing readonly arrays to generic
typescript-estree: hash code to reduce update frequency
typescript-estree: reduce bundle footprint of tsutils
Bug Fixes
eslint-plugin: crash fixing readonly arrays to generic
typescript-estree: hash code to reduce update frequency
typescript-estree: reduce bundle footprint of tsutils
Features
eslint-plugin: [no-unused-expressions] extend for optional chaining
parser: handle optional chaining in scope analysis
2.6.0
28 Oct 2019parser: adds TTY check before logging the version mismatch warning
typescript-estree: better handle canonical paths
typescript-estree: correct parenthesized optional chain AST
Bug Fixes
parser: adds TTY check before logging the version mismatch warning
typescript-estree: better handle canonical paths
typescript-estree: correct parenthesized optional chain AST
typescript-estree: ensure parent pointers are set
typescript-estree: normalize paths to fix cache miss on windows
Features
typescript-estree: add support for declare class properties
2.5.0
21 Oct 2019eslint-plugin: [no-magic-numbers] Support negative numbers
typescript-estree: correct semver check range
typescript-estree: handle running out of fs watchers
Bug Fixes
eslint-plugin: [no-magic-numbers] Support negative numbers
typescript-estree: correct semver check range
typescript-estree: handle running out of fs watchers
typescript-estree: parsing error for vue sfc
typescript-estree: remove now unneeded dep on chokidar
Features
eslint-plugin: Support abstract members in member-ordering rule
typescript-estree: support long running lint without watch
2.4.0
14 Oct 2019eslint-plugin: [promise-function-async] Should not report…
Support long running "watch" lint sessions
typescript-estree: support for parsing 3.7 features
2.3.3
7 Oct 2019eslint-plugin: [class-name-casing] allow unicode letters
eslint-plugin: [efrt] support constructor arguments
experimental-utils: remove Rule.meta.extraDescription
2.3.2
30 Sep 2019eslint-plugin: [no-unnec-type-arg] undefined symbol crash
typescript-estree: correct ClassDeclarationBase type
typescript-estree: handle optional computed prop w/o type
2.3.1
23 Sep 2019eslint-plugin: [cons-type-assns] handle namespaced types
eslint-plugin: [pfa] Allow async getter/setter in classes
typescript-estree: parsing error for await in non-async func
2.3.0
16 Sep 2019typescript-estree: ImportDeclaration.specifier to Literal
eslint-plugin: [explicit-member-accessibility] add support of "ignoredMethodNames"
eslint-plugin: [no-floating-promises] Add ignoreVoid option
Bug Fixes
typescript-estree: ImportDeclaration.specifier to Literal
Features
eslint-plugin: [explicit-member-accessibility] add support of "ignoredMethodNames"
eslint-plugin: [no-floating-promises] Add ignoreVoid option
eslint-plugin: [no-magic-numbers] add ignoreReadonlyClassProperties option
eslint-plugin: [strict-boolean-expressions] Add allowNullable option
eslint-plugin: add no-unnecessary-condition rule
2.2.0
9 Sep 2019eslint-plugin: [efrt] allowExpressions - check functions in class field properties
eslint-plugin: [expl-member-a11y] fix parameter properties
eslint-plugin: [prefer-readonly] add handling for destructuring assignments
Bug Fixes
eslint-plugin: [efrt] allowExpressions - check functions in class field properties
eslint-plugin: [expl-member-a11y] fix parameter properties
eslint-plugin: [prefer-readonly] add handling for destructuring assignments
Features
eslint-plugin: add brace-style [extension]
2.1.0
2 Sep 2019eslint-plugin: [member-naming] should match constructor args
eslint-plugin: [no-inferrable-types] ignore optional props
eslint-plugin: [promise-function-async] Allow async get/set
Bug Fixes
eslint-plugin: [member-naming] should match constructor args
eslint-plugin: [no-inferrable-types] ignore optional props
eslint-plugin: [promise-function-async] Allow async get/set
eslint-plugin: [require-await] Allow concise arrow function bodies
eslint-plugin: [typedef] don't flag destructuring when variables is disabled
eslint-plugin: [typedef] handle AssignmentPattern inside TSParameterProperty
eslint-plugin: [unbound-method] Allow typeof expressions (Fixes #692)
eslint-plugin: [unbound-method] false positive in equality comparisons
eslint-plugin: [unified-signatures] type comparison and exported nodes
typescript-estree: improve missing project file error msg (#866) (8f3b0a8), closes #853
Features
Allow
as constarrow functionseslint-plugin: [expl-func-ret-type] make error loc smaller
eslint-plugin: [no-type-alias] support tuples
eslint-plugin: add quotes [extension]
typescript-estree: Accept a glob pattern for
options.project
2.0.0
13 Aug 2019- Breaking
Node 6 is no longer supported.
- Breaking
eslint-plugin: Removed hardcoded checks which prevented some rules from running on non-TypeScript files (i.e. files that are not
*.ts/*.tsx). - Breaking
eslint-plugin: Removed deprecated rule
prefer-interface. This rule was replaced byconsistent-type-definitions.
Breaking changes
- Breaking
Node 6 is no longer supported.
Node 6 is now end of life. With the release of ESLint v6, they have dropped support for Node 6. As such, we have also dropped Node 6 from our testing pipeline. Please consider upgrading to a supported version of Node. See this page for more information about node version lifecycle and dates.
- Breaking
eslint-plugin: Removed hardcoded checks which prevented some rules from running on non-TypeScript files (i.e. files that are not
*.ts/*.tsx).Some users with mixed TS/JS codebases may now see some TypeScript-specific rules being reported against JS files.
Please use ESLint's
"overrides"config to select which files to apply rules to.
- Breaking
eslint-plugin: Removed deprecated rule
prefer-interface. This rule was replaced byconsistent-type-definitions. - Breaking
eslint-plugin: Removed deprecated rule
no-triple-slash-reference. This rule was replaced bytriple-slash-reference - Breaking
eslint-plugin: Merged both
no-angle-bracket-type-assertionandno-object-literal-type-assertioninto one rule -consistent-type-assertions. - Breaking
eslint-plugin:
explicit-function-return-typeno longer treatsexport default () => {}as an expression for the purposes of theallowExpressionsoption. - Breaking
eslint-plugin: Changed a number of the default rule configs:
explicit-function-return-type-allowTypedFunctionExpressionsandallowHigherOrderFunctionsare now bothtrueby default.no-inferrable-types-ignoreParametersandignorePropertiesare now bothfalseby default.no-this-alias-allowDestructuringis nowtrueby default.
- Breaking
eslint-plugin: Reworked the recommended configs:
plugin:@typescript-eslint/recommendedThis is our slim, recommended set of rules. This config does not require type information, so it can be easily dropped into an existing config.
plugin:@typescript-eslint/recommended-requiring-type-checkingThis is a slightly expanded set of rules, intended to be used in conjunction with
plugin:@typescript-eslint/recommended. These rules specifically require type information. We separated these rules into a separate config to ease adoption and to make the baserecommended"fast-by-default".
plugin:@typescript-eslint/eslint-recommendedThis config is a compatibility config that disables rules from
eslint:recommendedwhich are already handled by TypeScript.
This config simply turns on every single rule available in the plugin.
The intention is that you can use all the configs together, as they build upon one-another:
{ "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking" ] }
Bug Fixes
typescript-estree: fix
istoken typed asKeywordtypescript-estree: jsx comment parsing
Features
- 1.x
1.13.0
21 Jul 2019Correct
@types/json-schemadependencyeslint-plugin: undo breaking changes to recommended config
Bug Fixes
Correct
@types/json-schemadependencyeslint-plugin: remove imports from typescript-estree (#706) (ceb2d32), closes #705
eslint-plugin: undo breaking changes to recommended config
utils: move
typescriptfrom peer dep to dev deputils: RuleTester should not require a parser
Features
eslint-plugin: add new rule no-misused-promises
eslint-plugin: add new rule require-await
1.12.0
12 Jul 2019typescript-estree: fix
asyncidentifier token typed asKeywordeslint-plugin: [ban-types] Support namespaced type
Bug Fixes
typescript-estree: fix
asyncidentifier token typed asKeyword
Features
eslint-plugin: [ban-types] Support namespaced type
eslint-plugin: [explicit-function-return-type] add handling for usage as arguments
eslint-plugin: [no-explicit-any] Add an optional fixer
eslint-plugin: Add rule triple-slash-reference
eslint-plugin: add rule strict-boolean-expressions
eslint-plugin: added new rule prefer-readonly
1.11.0
23 Jun 2019eslint-plugin: [no-magic-numbers] add support for enums
eslint-plugin: [promise-function-async] allow any as return value
eslint-plugin: Remove duplicated code
Bug Fixes
eslint-plugin: [no-magic-numbers] add support for enums
eslint-plugin: [promise-function-async] allow any as return value
eslint-plugin: Remove duplicated code
parser: add simpleTraverse, replaces private ESLint util
typescript-estree: fix more cases with double slash in JSX text
Features
eslint-plugin: [no-explicit-any] ignoreRestArgs
eslint-plugin: add
consistent-type-definitionsruleeslint-plugin: add new rule no-empty-function
eslint-plugin: add new rule no-floating-promises
1.10.2
10 Jun 2019eslint-plugin: peerDep should specify semver major range
1.10.1
9 Jun 2019eslint-plugin: [no-type-alias] Fix parenthesized type handling
Bug Fixes
eslint-plugin: [explicit-function-return-type] Fix obj setter prop (8c8497c), closes #525
eslint-plugin: [no-extra-parens] Fix crash default switch case crash (5ec2b32), closes #509
eslint-plugin: [no-type-alias] Fix parenthesized type handling
eslint-plugin: [NUTA] false positive for null assign to undefined (#536) (b16409a), closes #529
eslint-plugin: Remove
no-dupe-class-membersfrom eslint-recommendedexperimental-utils: add
endLineandendColumnexperimental-utils: Avoid typescript import at runtime (#584) (fac5c7d), closes /github.com/typescript-eslint/typescript-eslint/pull/425#issuecomment-498162293
typescript-estree: allow expressions in ExportDefaultDeclaration
typescript-estree: stop ignoring comments in JSX with generic
Features
Make utils/TSESLint export typed classes instead of just types
Support TypeScript versions >=3.2.1 <3.6.0
eslint-plugin: [explicit-function-return-type] allowHigherOrderFunctions
eslint-plugin: add config all.json
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.