[camelcase] False positive with optional chaining #1196
Labels
bug
Something isn't working
good first issue
Good for newcomers
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Hi guys,
I updated my project to latest typescript and eslint-plugin (2.7.0) version to use the new optional chaining operator and I encounter a problem when enforcing the CamelCase rule. Below a I am posting an example:
Expected Result
Accessing snake_case fields of an object with the rule "@typescript-eslint/camelcase":2 should not throw an linting error.
Actual Result
Lint error when accessing an object's fields if they are in snake_case
Repro
Versions
@typescript-eslint/eslint-plugin
2.7.0
@typescript-eslint/parser
2.7.0
TypeScript
3.7.2
ESLint
6.6.0
node
10.16.0
npm
6.9.0
The text was updated successfully, but these errors were encountered: