Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
feat: support ESTree optional chaining representation (#2308)
- Loading branch information
Showing
with
3,980 additions
and 2,896 deletions.
- +1 −1 package.json
- +2 −4 packages/eslint-plugin-internal/src/rules/no-poorly-typed-ts-props.ts
- +32 −0 packages/eslint-plugin-internal/tests/rules/no-poorly-typed-ts-props.test.ts
- +0 −1 packages/eslint-plugin/src/rules/consistent-type-assertions.ts
- +2 −6 packages/eslint-plugin/src/rules/func-call-spacing.ts
- +2 −6 packages/eslint-plugin/src/rules/no-array-constructor.ts
- +2 −2 packages/eslint-plugin/src/rules/no-extra-non-null-assertion.ts
- +5 −2 packages/eslint-plugin/src/rules/no-inferrable-types.ts
- +1 −5 packages/eslint-plugin/src/rules/no-misused-promises.ts
- +61 −24 packages/eslint-plugin/src/rules/no-non-null-asserted-optional-chain.ts
- +38 −42 packages/eslint-plugin/src/rules/no-non-null-assertion.ts
- +1 −1 packages/eslint-plugin/src/rules/no-require-imports.ts
- +15 −21 packages/eslint-plugin/src/rules/no-unnecessary-condition.ts
- +1 −1 packages/eslint-plugin/src/rules/no-unsafe-call.ts
- +4 −6 packages/eslint-plugin/src/rules/no-unsafe-member-access.ts
- +2 −1 packages/eslint-plugin/src/rules/no-unused-expressions.ts
- +10 −9 packages/eslint-plugin/src/rules/no-var-requires.ts
- +2 −4 packages/eslint-plugin/src/rules/prefer-for-of.ts
- +16 −20 packages/eslint-plugin/src/rules/prefer-includes.ts
- +20 −27 packages/eslint-plugin/src/rules/prefer-optional-chain.ts
- +5 −6 packages/eslint-plugin/src/rules/prefer-reduce-type-parameter.ts
- +83 −79 packages/eslint-plugin/src/rules/prefer-string-starts-ends-with.ts
- +2 −2 packages/eslint-plugin/src/rules/require-array-sort-compare.ts
- +4 −8 packages/eslint-plugin/src/rules/unbound-method.ts
- +2 −3 packages/eslint-plugin/src/util/explicitReturnTypeUtils.ts
- +5 −2 packages/eslint-plugin/tests/rules/indent/indent.test.ts
- +0 −1 packages/experimental-utils/src/ast-utils/eslint-utils/astUtilities.ts
- +4 −14 packages/experimental-utils/src/ast-utils/predicates.ts
- +1 −2 packages/experimental-utils/src/ts-eslint/Rule.ts
- +0 −23 packages/parser/src/analyze-scope.ts
- +34 −8 packages/parser/tests/lib/__snapshots__/typescript.ts.snap
- +2 −18 packages/scope-manager/src/referencer/Referencer.ts
- +1 −2 packages/types/src/ast-node-types.ts
- +8 −27 packages/types/src/ts-estree.ts
- +60 −64 packages/typescript-estree/src/convert.ts
- +7 −10 packages/typescript-estree/src/node-utils.ts
- +4 −4 packages/typescript-estree/src/ts-estree/estree-to-ts-node-types.ts
- +1 −1 packages/typescript-estree/tests/ast-fixtures.test.ts
- +389 −253 ...-estree/tests/snapshots/typescript/basics/optional-chain-call-with-non-null-assertion.src.ts.shot
- +405 −252 ...s/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-parens.src.ts.shot
- +474 −321 packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call.src.ts.shot
- +422 −286 ...sts/snapshots/typescript/basics/optional-chain-element-access-with-non-null-assertion.src.ts.shot
- +366 −264 ...pt-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-parens.src.ts.shot
- +377 −275 ...ges/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access.src.ts.shot
- +208 −140 ...cript-estree/tests/snapshots/typescript/basics/optional-chain-with-non-null-assertion.src.ts.shot
- +352 −250 packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-parens.src.ts.shot
- +304 −219 packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain.src.ts.shot
- +188 −154 ...estree/tests/snapshots/typescript/expressions/optional-call-expression-type-arguments.src.ts.shot
- +3 −2 packages/visitor-keys/package.json
- +6 −0 packages/visitor-keys/src/get-keys.ts
- +1 −0 packages/visitor-keys/src/index.ts
- +0 −2 packages/visitor-keys/src/visitor-keys.ts
- +45 −21 yarn.lock
Oops, something went wrong.