-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc.js
35 lines (35 loc) · 958 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
29
30
31
32
33
34
35
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
plugins: [
'@typescript-eslint',
],
extends: [
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
],
rules: {
'import/prefer-default-export': 'off',
'max-len': ['error', {code: 180}],
'@typescript-eslint/indent': ['error', 2],
'no-param-reassign': ['error',
{ignorePropertyModificationsForRegex: ['^descriptor$']}
],
'max-classes-per-file': ['off'],
'class-methods-use-this': ['error', {exceptMethods: ['foo', 'goo', 'boo']}],
'no-async-promise-executor': ['off'],
'@typescript-eslint/no-explicit-any': ['off'],
'func-names': ['off'],
'import/extensions': ['off'],
'import/no-extraneous-dependencies': ['off'],
},
overrides: [{
files: [ '*.spec.ts' ],
rules: {
'@typescript-eslint/no-unused-vars': ['off']
}
}]
};