6.0.0 (2023-07-10)
Bug Fixes
- ast-spec: remove more invalid properties (#6243) (aa20f63)
- bumped ts-api-utils to 0.0.39 (#6497) (217c710)
- correct handling of additionalProperties in object schemas (#6939) (489c7a5)
- correct jest.mock path post merge (778d254)
- correct lint error after merge (277fdb5)
- eslint-plugin: [explicit-module-boundary-types] remove shouldTrackReferences option from schema (#5399) (6d32734)
- eslint-plugin: allow parser@^6.0.0 (#6630) (92908bd)
- eslint-plugin: remove valid-typeof disable in eslint-recommended (#5381) (b82df5e)
- fix illegal decorator check (#6723) (c456f8c)
- rename typeParameters to typeArguments where needed (#5384) (08d757b)
- replace tsutils with ts-api-tools (#6428) (79327b4)
- type-utils: checking of type aliases' type names by
typeMatchesSpecifier
(#6820) (7ca2c90) - type-utils: file variant of TypeOrValueSpecifier uses canonical filenames instead of lowercasing (#6781) (5095d05)
- type-utils: fixed TypeOrValueSpecifier not accounting for scoped DT packages (#6780) (3350940)
- type-utils: treat intrinsic types as if they are from lib and never match error types (#6869) (ecb57de)
- typescript-estree: account for namespace nesting in AST conversion (#6272) (09e3877)
- typescript-estree: allow writing to deprecated node properties (#6670) (6652ebe)
- typescript-estree: fix error handling on
ImportExpression
(#6587) (e8cdd5c) - typescript-estree: forbid
override
on non-constructor function/methods (#6729) (2f3638f) - typescript-estree: wrap import = declaration in an export node (#5885) (1c3f470), closes #5036 #5834 #5882 #5864 #3076 #5834 #5882 #5864 #5889 #5834 #5882 #5864 #5883 #4863 #5381 #5256
- update
exports
field in package.json files (#6550) (53776c2) - utils: removed
TRuleListener
generic from thecreateRule
(#5036) (361f8bc), closes #5834 #5882 #5864
chore
Features
- add new package
rule-tester
(#6777) (2ce1c1d) - add package.json exports for public packages (#6458) (d676683)
- bump minimum supported TS version to 4.2.4 (#5915) (a8e71d5)
- bump ts-api-utils to v0.0.21 (#6459) (3915661)
- bump ts-api-utils to v0.0.22 (#6472) (b88cd23)
- create TSTypeQuery node when TSImportType has isTypeOf (#3076) (2b69b65), closes #5834 #5882 #5864
- drop support for ESLint v6 (#5972) (bda806d)
- drop support for node v12 (#5918) (7e3fe9a)
- drop support for node v14 and test against node v20 (#7022) (e6235bf)
- eslint-plugin: [prefer-nullish-coalescing]: add support for assignment expressions (#5234) (4bdbe67)
- eslint-plugin: [prefer-optional-chain] handle cases where the first operands are unrelated to the rest of the chain and add type info (#6397) (02a37c4)
- eslint-plugin: [prefer-readonly-parameter-types] added an optional type allowlist (#4436) (c9427b7)
- eslint-plugin: [restrict-plus-operands] change checkCompoundAssignments to skipCompoundAssignments (#7027) (dc801d8)
- eslint-plugin: add config that disables type-aware linting (#6470) (3b063cf)
- eslint-plugin: apply final v6 changes to configs (#7110) (c13ce0b)
- eslint-plugin: deprecate no-type-alias (#6229) (820bdf2)
- eslint-plugin: final final config changes for v6 (#7157) (e35c5c1)
- eslint-plugin: rework configs: recommended, strict, stylistic; -type-checked (#5251) (5346b5b), closes #5036 #5834 #5882 #5864 #3076 #5834 #5882 #5864 #5889 #5834 #5882 #5864 #5883 #4863 #5381 #5256 #5399
- experimental-utils: console.warn on import of experimental-utils (#6179) (0b7476b)
- fork json schema types for better compat with ESLint rule validation (#6963) (a4967f2)
- improve error location (#6556) (355adf0)
- improve rule schemas, add test to validate schemas, add tooling to generate schema types (#6899) (acc1a43)
- made BaseNode.parent non-optional (#5252) (a4768f3), closes #5036 #5834 #5882 #5864 #3076 #5834 #5882 #5864 #5889 #5834 #5882 #5864 #5883 #4863 #5381 #5256 #5399
- raise tsconfig target to ES2021 (#5981) (2a5e20f)
- remove
experimental-utils
(#6468) (71adbc5) - remove
RuleTester
in/utils
in favour of the new/rule-tester
package (#6816) (c33f497) - remove moduleResolver API (#6609) (f0f45a9)
- remove partial type-information program (#6066) (7fc062a)
- remove semantically invalid properties from TSEnumDeclaration, TSInterfaceDeclaration and TSModuleDeclaration (#4863) (844875c)
- scope-manager: ignore ECMA version (#5889) (f2330f7), closes #5834 #5882 #5864 #5883
- typescript-estree: add type checker wrapper APIs to ParserServicesWithTypeInformation (#6404) (62d5755)
- typescript-estree: added allowInvalidAST option to not throw on invalid tokens (#6247) (a3b177d)
- typescript-estree: allow providing code as a ts.SourceFile (#5892) (af41b7f)
- typescript-estree: check for illegal decorators on function declarations (#6590) (1b39cfd)
- typescript-estree: check modifiers on every node (#6615) (62d6230)
- typescript-estree: deprecate createDefaultProgram (#5890) (426d6b6)
- typescript-estree: forbid members in Mapped Type (#6802) (b93458f)
- typescript-estree: remove optionality from AST boolean properties (#6274) (df131e2)
- typescript-estree: remove parseWithNodeMaps (#7120) (e2a0a76)
- typescript-estree: strict class heritage clauses check (#6576) (530185b)
- typescript-estree: throw errors for object methods without function bodies (#6589) (1d78576)
- typescript-estree: throw errors on interface with implements (#6551) (67e05c8)
- typescript-estree: throw errors when abstract property has initializer (#6613) (dcdbc76)
- typescript-estree: warn on deprecated AST property accesses (#6525) (79c058d)
- utils: remove (ts-)eslint-scope types (#5256) (df54175)
- utils: remove obsolete
meta.docs.suggestion
rule type (#5967) (f424b2a)
BREAKING CHANGES
- Removes
experimental-utils
- we will no longer update this package and it will be forever frozen at v5.x - eslint-plugin: Adds an additional class of checks to the rule
- drop support for ESLint v6
- drops support for node v17
- utils: Removes
meta.docs.suggestion
property - Bumps the minimum supported range and removes handling for old versions
- drops support for node v12
You can read about our versioning strategy and releases on our website.