You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
{ |
|
"extends": [ |
|
"eslint:recommended", |
|
"plugin:prettier/recommended", |
|
"plugin:@typescript-eslint/recommended" |
|
], |
|
"parser": "@typescript-eslint/parser", |
|
"parserOptions": { |
|
"ecmaVersion": 11, |
|
"sourceType": "module" |
|
}, |
|
"plugins": ["@typescript-eslint", "jest"], |
|
"rules": { |
|
"no-var": 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": [ |
|
{ |
|
// enable the rule specifically for TypeScript files |
|
"files": ["*.ts", "*.tsx"], |
|
"rules": { |
|
"@typescript-eslint/explicit-member-accessibility": [ |
|
1, |
|
{ |
|
"accessibility": "explicit", |
|
"overrides": { |
|
"accessors": "explicit", |
|
"constructors": "no-public", |
|
"methods": "explicit", |
|
"properties": "explicit", |
|
"parameterProperties": "explicit" |
|
} |
|
} |
|
] |
|
} |
|
} |
|
], |
|
"env": { |
|
"browser": true, |
|
"node": true, |
|
"es6": true, |
|
"jest/globals": true |
|
}, |
|
"globals": { "google": "readonly" } |
|
}
|
|
|