Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix: correct decorator traversal for AssignmentPattern (#2375)
BREAKING CHANGE: - Removed decorators property from several Nodes that could never semantically have them (FunctionDeclaration, TSEnumDeclaration, and TSInterfaceDeclaration) - Removed AST_NODE_TYPES.Import. This is a minor breaking change as the node type that used this was removed ages ago.
- Loading branch information
Showing
with
14 additions
and 170 deletions.
- +1 −3 packages/eslint-plugin/src/rules/no-empty-function.ts
- +0 −7 packages/eslint-plugin/tests/rules/no-empty-function.test.ts
- +10 −0 packages/eslint-plugin/tests/rules/no-unused-vars.test.ts
- +1 −0 packages/types/package.json
- +0 −3 packages/types/src/ts-estree.ts
- +0 −27 packages/typescript-estree/src/convert.ts
- +0 −37 ...escript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-enum-declaration.src.ts.shot
- +0 −37 ...ages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-function.src.ts.shot
- +0 −56 ...pt-estree/tests/snapshots/typescript/errorRecovery/decorator-on-interface-declaration.src.ts.shot
- +1 −0 packages/visitor-keys/package.json
- +1 −0 packages/visitor-keys/src/visitor-keys.ts