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(typescript-estree): correct ChainExpression interaction with pare…
…ntheses and non-nulls (#2380)
- Loading branch information
Showing
with
348 additions
and 401 deletions.
- +91 −57 packages/eslint-plugin/src/rules/no-non-null-asserted-optional-chain.ts
- +6 −0 packages/eslint-plugin/src/rules/prefer-optional-chain.ts
- +4 −0 packages/eslint-plugin/tests/rules/no-non-null-asserted-optional-chain.test.ts
- +4 −1 packages/types/src/ts-estree.ts
- +26 −12 packages/typescript-estree/src/convert.ts
- +3 −27 packages/typescript-estree/src/node-utils.ts
- +2 −1 packages/typescript-estree/src/ts-estree/estree-to-ts-node-types.ts
- +0 −23 packages/typescript-estree/tests/ast-alignment/fixtures-to-test.ts
- +74 −108 ...-estree/tests/snapshots/typescript/basics/optional-chain-call-with-non-null-assertion.src.ts.shot
- +25 −8 ...s/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-parens.src.ts.shot
- +76 −110 ...sts/snapshots/typescript/basics/optional-chain-element-access-with-non-null-assertion.src.ts.shot
- +37 −54 ...cript-estree/tests/snapshots/typescript/basics/optional-chain-with-non-null-assertion.src.ts.shot
Oops, something went wrong.