-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·28 lines (27 loc) · 943 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const DISABLED = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// "@typescript-eslint/explicit-function-return-type": ["error", { allowExpressions: true }],
// 'no-unused-expressions': DISABLED
"prefer-rest-params": WARNING,
"typescript-eslint/no-explicit-any": DISABLED,
"@typescript-eslint/explicit-function-return-type": WARNING,
"@typescript-eslint/no-var-requires": DISABLED,
'@typescript-eslint/no-empty-interface': DISABLED,
"@typescript-eslint/ban-ts-ignore": WARNING,
"@typescript-eslint/no-explicit-any": DISABLED,
},
};