Skip to content

Releases: typescript-eslint/typescript-eslint

v6.6.0

04 Sep 17:13
Compare
Choose a tag to compare

6.6.0 (2023-09-04)

Bug Fixes

  • eslint-plugin: [key-spacing] consider properties with parens and comments (#7525) (7012279)

Features

  • rule-tester: allow to create empty tests (#7467) (654b35d)

You can read about our versioning strategy and releases on our website.

v6.5.0

28 Aug 17:13
Compare
Choose a tag to compare

6.5.0 (2023-08-28)

Bug Fixes

  • eslint-plugin: [consistent-type-assertions] wrap object return value with parentheses (#6885) (23ac499)

Features

  • bump supported TS version to 5.2 (#7535) (f18c88d)
  • support Explicit Resource Management syntax for TS 5.2 (#7479) (c11e05c)

You can read about our versioning strategy and releases on our website.

v6.4.1

21 Aug 17:13
Compare
Choose a tag to compare

6.4.1 (2023-08-21)

Bug Fixes

  • eslint-plugin: [no-unnecessary-condition] false positives with branded types (#7466) (b52658f), closes #7293
  • utils: [ts-eslint] small type fixes (#7474) (4402db1)

You can read about our versioning strategy and releases on our website.

v6.4.0

14 Aug 17:14
Compare
Choose a tag to compare

6.4.0 (2023-08-14)

Bug Fixes

  • eslint-plugin: [non-nullable-type-assertion-style] consider operator precedence when fixing (#7289) (bad37a2)
  • eslint-plugin: [strict-boolean-expressions] replace dangerous fixer with suggestions (#7394) (ad8401a)
  • typescript-estree: support declare and export modifiers for nested namespace declaration (#7410) (49a53f0)
  • utils: add new properties since eslint 8.40.0 (#7460) (660aff7)
  • utils: add to JSONSchema4Type missing Array and Object (#7406) (60df0bb)

Features

You can read about our versioning strategy and releases on our website.

v6.3.0

07 Aug 17:15
Compare
Choose a tag to compare

6.3.0 (2023-08-07)

Bug Fixes

  • eslint-plugin: [no-extra-parens] keep parens around call expression arguments when type arguments contain parens (#7375) (38e5e4e)
  • eslint-plugin: [no-restricted-imports] allow inline type qualifiers when allowTypeImports enabled (#7379) (cc9a46d)

Features

  • eslint-plugin: [prefer-nullish-coalescing] allow ignorePrimitives option to be true (#7331) (dfcafae)

You can read about our versioning strategy and releases on our website.

v6.2.1

31 Jul 17:15
Compare
Choose a tag to compare

6.2.1 (2023-07-31)

Bug Fixes

  • eslint-plugin: [no-inferrable-types] apply also for parameter properties (#7288) (67f93b1)
  • scope-manager: correct decorators(.length) check in ClassVisitor for methods (#7334) (abbb6c2)

You can read about our versioning strategy and releases on our website.

v6.2.0

24 Jul 17:15
Compare
Choose a tag to compare

6.2.0 (2023-07-24)

Bug Fixes

  • eslint-plugin: [member-ordering] account for repeated names (#6864) (d207b59)
  • eslint-plugin: [no-unsafe-enum-comparison] exempt bit shift operators (#7074) (b3e0e75)
  • eslint-plugin: [prefer-nullish-coalescing] handle case when type of left side is null or undefined (#7225) (b62affe)
  • eslint-plugin: use a default export for the rules type (#7266) (af77a1d)
  • typescript-estree: fix TSNode type error on old ts versions (#7267) (f2aed1b)

Features

  • eslint-plugin: [class-methods-use-this] add extension rule (#6457) (18ea3b1)
  • eslint-plugin: sync getFunctionHeadLoc implementation with upstream (#7260) (f813147)

You can read about our versioning strategy and releases on our website.

v6.1.0

17 Jul 17:16
Compare
Choose a tag to compare

6.1.0 (2023-07-17)

Bug Fixes

  • eslint-plugin: [comma-dangle] fixed crash from undefined predicate.ignore (#7223) (d368164)
  • eslint-plugin: [no-floating-promises] false negative calling .then with second argument undefined (#6881) (606a52c), closes #6850
  • eslint-plugin: [no-floating-promises] finally should be transparent to unhandled promises (#7092) (2a4421c)
  • eslint-plugin: [no-unnecessary-type-constraint] correctly fix in cts/mts files (#6795) (1404796)
  • eslint-plugin: [no-unused-vars] check if any variable definition is exported (#6873) (587ac30), closes #6188
  • eslint-plugin: fix schemas across several rules and add schema tests (#6947) (dd31bed)
  • eslint-plugin: include the rules types in the package (#7215) (a3da11d)
  • typescript-estree: remove ts.sys watch program override (#7252) (41d6e9d)
  • utils: accept null as default option in applyDefault (#6724) (841889f)

Features

  • typescript-estree: add EXPERIMENTAL_useProjectService option to use TypeScript project service (#6754) (6d3d162)

You can read about our versioning strategy and releases on our website.

v6.0.0

10 Jul 17:59
Compare
Choose a tag to compare

See the announcement blog post for a friendly description of all changes and CHANGELOG.md for a full organized list of them. 🎉

What's Changed

  • feat: made BaseNode.parent non-optional by @JoshuaKGoldberg in #5252
  • feat(experimental-utils): console.warn on import of experimental-utils by @kball in #6179
  • chore(eslint-plugin): remove deprecated rules for v6 by @JoshuaKGoldberg in #6112
  • feat: remove partial type-information program by @bradzacher in #6066
  • chore(typescript-estree): remove unnecessary this.inTypeMode field by @bradzacher in #6375
  • feat(eslint-plugin): deprecate no-type-alias by @JoshuaKGoldberg in #6229
  • chore(typescript-estree): remove visitor-keys backwards compat export by @JoshuaKGoldberg in #6242
  • fix(typescript-estree): wrap import = declaration in an export node by @JoshuaKGoldberg in #5885
  • feat(typescript-estree): add type checker wrapper APIs to ParserServicesWithTypeInformation by @JoshuaKGoldberg in #6404
  • fix: replace tsutils with ts-api-tools by @JoshuaKGoldberg in #6428
  • feat: bump ts-api-utils to v0.0.21 by @bradzacher in #6459
  • feat(eslint-plugin): rework configs: recommended, strict, stylistic; -type-checked by @JoshuaKGoldberg in #5251
  • feat: remove experimental-utils by @bradzacher in #6468
  • fix(ast-spec): remove more invalid properties by @JoshuaKGoldberg in #6243
  • feat(eslint-plugin): add config that disables type-aware linting by @bradzacher in #6470
  • chore: update downlevel-dts config to target TS4.2 by @bradzacher in #6471
  • feat: bump ts-api-utils to v0.0.22 by @bradzacher in #6472
  • chore: cleanup repo lint + typechecking by @bradzacher in #6473
  • test: allow to execute tests on windows by @armano2 in #6488
  • fix(typescript-estree): account for namespace nesting in AST conversion by @JoshuaKGoldberg in #6272
  • feat: add package.json exports for public packages by @bradzacher in #6458
  • fix: bumped ts-api-utils to 0.0.39 by @JoshuaKGoldberg in #6497
  • fix: rename typeParameters to typeArguments where needed by @JoshuaKGoldberg in #5384
  • feat(typescript-estree): remove optionality from AST boolean properties by @JoshuaKGoldberg in #6274
  • chore: remove no-longer-necessary ts-api-utils package patch by @JoshuaKGoldberg in #6526
  • test(ast-spec): snapshot codeframe of error by @fisker in #6555
  • feat(typescript-estree): added allowInvalidAST option to not throw on invalid tokens by @JoshuaKGoldberg in #6247
  • fix: update exports field in package.json files by @fisker in #6550
  • feat: improve error location by @fisker in #6556
  • feat(typescript-estree): throw errors on interface with implements by @fisker in #6551
  • feat(typescript-estree): strict class heritage clauses check by @fisker in #6576
  • feat(typescript-estree): check for illegal decorators on function declarations by @fisker in #6590
  • feat(typescript-estree): throw errors for object methods without function bodies by @fisker in #6589
  • fix(typescript-estree): fix error handling on ImportExpression by @fisker in #6587
  • feat: remove moduleResolver API by @bradzacher in #6609
  • feat(typescript-estree): warn on deprecated AST property accesses by @JoshuaKGoldberg in #6525
  • fix(eslint-plugin): allow parser@^6.0.0 by @JoshuaKGoldberg in #6630
  • feat(typescript-estree): check modifiers on every node by @fisker in #6615
  • feat(typescript-estree): throw errors when abstract property has initializer by @fisker in #6613
  • chore: bump ts-api-utils to v0.0.44 by @bradzacher in #6659
  • fix(typescript-estree): allow writing to deprecated node properties by @JoshuaKGoldberg in #6670
  • feat(eslint-plugin): [prefer-readonly-parameter-types] added an optional type allowlist by @marekdedic in #4436
  • fix(typescript-estree): forbid override on non-constructor function/methods by @fisker in #6729
  • chore(website): migrate from lzstring.ts to lz-string package by @armano2 in #6727
  • chore(website): [playground] regression fix for parsing comments by @armano2 in #6768
  • chore(website): [playground] add tabs to ast viewer and update design by @armano2 in #6735
  • chore(website): [playground] improve design of error viewer by @armano2 in #6738
  • chore(website): [playground] update options selector by @armano2 in #6736
  • chore(website): add stylelint and fix css issues by @armano2 in #6779
  • chore(website): [playground] drop support for typescript v3 by @armano2 in #6775
  • chore(website): update build script to use esbuild instead of rollup by @armano2 in #6716
  • feat(typescript-estree): forbid members in Mapped Type by @fisker in #6802
  • fix(type-utils): checking of type aliases' type names by typeMatchesSpecifier by @RebeccaStevens in #6820
  • chore(website): [playground] add copy as json and simplify ast viewer by @armano2 in #6728
  • chore(website): [playground] allow to choose file extensions by @armano2 in #6785
  • chore(website): [playground] add support for extends in eslint config by @armano2 in #6796
  • chore(website): add stylelint job in ci by @juank1809 in #6800
  • chore(website): [playground] inline visual editor instead of showing modal by @armano2 in #6813
  • chore: correct v6 stylelint action error by @armano2 in #6837
  • chore(website): add documentation comments to various functions by @armano2 in #6840
  • chore(website): [playground] use languageService for linting code by @armano2 in #6806
  • chore: simplify getLocFor by @fisker in #6733
  • chore(website): validate rule options in editor by @armano2 in #6907
  • chore(website): [playground] option to disable scroll and display tokens by @armano2 in #6863
  • chore: bump minimum TS to 4.3.5 by @bradzacher in #6923
  • fix(type-utils): fixed TypeOrValueSpecifier not accounting for scoped DT packages by @marekdedic in #6780
  • chore: update ts-api-utils to v46 by @bradzacher in #6925
  • chore(website): improve error handling by @armano2 in #6929
  • chore: remove duplicated and un...
Read more

v5.62.0

10 Jul 17:17
Compare
Choose a tag to compare

5.62.0 (2023-07-10)

Bug Fixes

  • eslint-plugin: [comma-spacing] allow no space after trailing comma in objects and arrays (#6938) (24bdacc)
  • eslint-plugin: [prefer-includes] escape special characters (#7161) (5a347a5), closes #7145
  • eslint-plugin: replace auto-fix of class literal property style rule with suggestion (#7054) (a8c824a)

Features

  • eslint-plugin: [prefer-nullish-coalescing] add ignorePrimitives option (#6487) (6edaa04)

You can read about our versioning strategy and releases on our website.