|
|
@ -1,30 +1,28 @@ |
|
|
|
{ |
|
|
|
{ |
|
|
|
"extends": [ |
|
|
|
"extends": ["eslint:recommended", "plugin:prettier/recommended"], |
|
|
|
"eslint:recommended", |
|
|
|
|
|
|
|
"plugin:prettier/recommended", |
|
|
|
|
|
|
|
"plugin:@typescript-eslint/recommended" |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"parser": "@typescript-eslint/parser", |
|
|
|
|
|
|
|
"parserOptions": { |
|
|
|
"parserOptions": { |
|
|
|
"ecmaVersion": 11, |
|
|
|
"ecmaVersion": "latest", |
|
|
|
"sourceType": "module" |
|
|
|
"sourceType": "module", |
|
|
|
|
|
|
|
"ecmaFeatures": { |
|
|
|
|
|
|
|
"jsx": true |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
"plugins": ["@typescript-eslint", "jest"], |
|
|
|
"plugins": ["jest"], |
|
|
|
"rules": { |
|
|
|
"rules": { |
|
|
|
"no-var": 2, |
|
|
|
"no-var": 2, |
|
|
|
"prefer-arrow-callback": 2, |
|
|
|
"prefer-arrow-callback": 2 |
|
|
|
"@typescript-eslint/ban-ts-comment": 0, |
|
|
|
|
|
|
|
"@typescript-eslint/ban-types": 1, |
|
|
|
|
|
|
|
"@typescript-eslint/no-empty-function": 1, |
|
|
|
|
|
|
|
"@typescript-eslint/member-ordering": 1, |
|
|
|
|
|
|
|
// disable the rule for all files |
|
|
|
|
|
|
|
"@typescript-eslint/explicit-member-accessibility": "off" |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
"overrides": [ |
|
|
|
"overrides": [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
// enable the rule specifically for TypeScript files |
|
|
|
|
|
|
|
"files": ["*.ts", "*.tsx"], |
|
|
|
"files": ["*.ts", "*.tsx"], |
|
|
|
|
|
|
|
"parser": "@typescript-eslint/parser", |
|
|
|
|
|
|
|
"plugins": ["@typescript-eslint"], |
|
|
|
|
|
|
|
"extends": ["plugin:@typescript-eslint/recommended"], |
|
|
|
"rules": { |
|
|
|
"rules": { |
|
|
|
|
|
|
|
"@typescript-eslint/ban-ts-comment": 0, |
|
|
|
|
|
|
|
"@typescript-eslint/ban-types": 1, |
|
|
|
|
|
|
|
"@typescript-eslint/no-empty-function": 1, |
|
|
|
|
|
|
|
"@typescript-eslint/member-ordering": 1, |
|
|
|
"@typescript-eslint/explicit-member-accessibility": [ |
|
|
|
"@typescript-eslint/explicit-member-accessibility": [ |
|
|
|
1, |
|
|
|
1, |
|
|
|
{ |
|
|
|
{ |
|
|
|