diff --git a/src/index.test.ts b/src/index.test.ts index 77015166..c09d8f91 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -65,7 +65,11 @@ test('export', (t): void => { ], '@typescript-eslint/consistent-type-definitions': ['error', 'interface'], '@typescript-eslint/default-param-last': 'error', - '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }], + '@typescript-eslint/dot-notation': ['error', { + allowPattern: '', + allowKeywords: true, + allowPrivateClassPropertyAccess: false + }], '@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true, allowHigherOrderFunctions: true, diff --git a/src/index.ts b/src/index.ts index a6254b5f..579d955d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,6 @@ import { rules as standardRules } from 'eslint-config-standard/eslintrc.json' const equivalents = [ 'comma-spacing', - 'dot-notation', 'brace-style', 'func-call-spacing', 'indent', @@ -41,10 +40,16 @@ export = { ...fromEntries(equivalents.map((name) => [name, 'off'])), camelcase: 'off', 'default-param-last': 'off', + 'dot-notation': 'off', 'no-use-before-define': 'off', // @typescript-eslint versions of Standard.js rules: ...fromEntries(equivalents.map((name) => [`@typescript-eslint/${name}`, standardRules[name]])), + '@typescript-eslint/dot-notation': ['error', { + allowPattern: '', + allowKeywords: true, + allowPrivateClassPropertyAccess: false // Only the TypeScript rule has this option. + }], '@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false,