Releases: typescript-eslint/typescript-eslint
Releases · typescript-eslint/typescript-eslint
v4.6.1
v4.6.0
4.6.0 (2020-10-26)
Bug Fixes
- eslint-plugin: [method-signature-style] correct fixer for overloads in an object literal type (#2708) (0763913)
- eslint-plugin: [method-signature-style] don't auto-fix interfaces within namespaces (#2678) (e012049)
- eslint-plugin: [prefer-string-starts-ends-with] Check negative indices in the second position for slice (#2696) (66e9c6e)
Features
v4.5.0
4.5.0 (2020-10-19)
Bug Fixes
- eslint-plugin: [array-type] fix issues with readonly option (#2667) (63d1d81)
- eslint-plugin: [lines-between-class-members] fix typo in schema (#2681) (a2a2514)
- eslint-plugin: [naming-convention] check bodyless function parameters (#2675) (c505863)
- eslint-plugin: [no-invalid-this] allow "this" in class property definitions (#2685) (dccb6ee)
- eslint-plugin: [no-misused-promises] False negative in LogicalExpression (#2682) (30a6951), closes #2544
- eslint-plugin: [no-unnecessary-type-assertion] correct fixer for vue files (#2680) (55111af)
- eslint-plugin: [return-await] do not auto-fix when type is
any
/unknown
(#2671) (d690c8d) - parser: minor fix regexp, map-filter to reduce (#2684) (f1329f6)
Features
- eslint-plugin: [dot-notation] add
allowProtectedClassPropertyAccess
option (#2622) (bbc9e35) - eslint-plugin: [prefer-readonly-parameter-types] add
ignoreInferredTypes
option (#2668) (91010e8) - eslint-plugin: [restrict-plus-operands] add intersection type determination logic (#2628) (da71362)
- typescript-estree: add flag EXPERIMENTAL_useSourceOfProjectReferenceRedirect (#2669) (90a5878)
v4.4.1
4.4.1 (2020-10-12)
Bug Fixes
- eslint-plugin: [ban-ts-comment] support block comments (#2644) (9c3c686)
- eslint-plugin: [ban-types] allow banning types with specific parameters (#2662) (77732a2)
- eslint-plugin: [consistent-type-assertions] check type assertion in jsx props (#2653) (393e925)
- eslint-plugin: [no-duplicate-imports] distinguish member, default (#2637) (c71f423)
- eslint-plugin: [no-throw-literal] false positive with logical expressions (#2645) (57aa6c7)
- eslint-plugin: [no-unused-vars] fix false positives for duplicated names in namespaces (#2659) (0d696c7)
- eslint-plugin: [no-use-before-define] correctly handle typeof type references (#2623) (8e44c78)
- scope-manager: don't create a variable for global augmentation (#2639) (6bc9325)
v4.4.0
v4.3.0
v4.2.0
4.2.0 (2020-09-21)
Bug Fixes
- eslint-plugin: [naming-convention] ignore properties inside object patterns (#2566) (53a3cbc)
- eslint-plugin: [prefer-ts-expect-error] support block comments (#2541) (c6f72fb)
- scope-manager: correct analysis of inferred types in conditional types (#2537) (4f660fd)
Features
v4.1.1
4.1.1 (2020-09-14)
Bug Fixes
- eslint-plugin: [naming-convention] allow an array of selectors with types and modifiers (#2415) (7ca54c3)
- eslint-plugin: [no-implied-eval] handle the
Function
type (#2435) (e1401dc) - eslint-plugin: [no-unused-vars] better handling for declared modules (#2553) (02d72d4), closes #2523
- eslint-plugin: [no-use-before-define] false positive for function type arguments (#2554) (189162d), closes #2527
- eslint-plugin: [prefer-function-type] handle
this
return (#2437) (7c6fcee) - eslint-plugin: [return-await] don't error for
in-try-catch
if the return is in acatch
without afinally
(#2356) (efdd521)
v4.1.0
4.1.0 (2020-09-07)
Bug Fixes
- eslint-plugin: [explicit-module-boundary-types] cyclical reference infinite recursion crash (#2482) (8693653)
- eslint-plugin: [no-unused-vars] correct detection of unused vars in a declared module with
export =
(#2505) (3d07a99) - eslint-plugin: [no-unused-vars] properly handle ambient declaration exports (#2496) (4d3ce5f)
- eslint-plugin: [no-use-before-define] false positive with jsx pragma reference (#2503) (5afeeab), closes #2502
- eslint-plugin: [typedef] false positive for rest parameter with array destructuring (#2441) (2ada5af)
- eslint-plugin: handle missing message IDs in eslint v5/v6 (#2461) (ffdfade)
- scope-manager: add
const
as a global type variable (#2499) (eb3f6e3) - scope-manager: correctly handle inferred types in nested type scopes (#2497) (95f6bf4)
- scope-manager: don't create references for intrinsic JSX elements (#2504) (cdb9807)
- scope-manager: fallback to lib 'esnext' or 'es5' when ecma version is unsupported (#2474) (20a7dcc)
- scope-manager: support rest function type parameters (#2491) (9d8b4c4), closes #2449
- scope-manager: support tagged template string generic type parameters (#2492) (a2686c0)
- scope-manager: support type predicates (#2493) (a40f54c), closes #2462
- scope-manager: treat type imports as both values and types (#2494) (916e95a), closes #2453