-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.18 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
env: {
node: true,
jest: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'airbnb-base',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parserOptions: {
project: './tsconfig.eslint.json',
},
settings: {
'import/resolver': {
node: {
extensions: ['.ts'],
},
},
},
rules: {
'import/extensions': 0,
'object-curly-spacing': ['warn', 'always'],
'@typescript-eslint/indent': 0,
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': [
'warn',
{
vars: 'all',
args: 'all',
argsIgnorePattern: '^_',
},
],
'no-debugger': 0, // 1
'no-console': 0, // ['error', { allow: ['warn', 'error'] }],
'no-shadow': 0,
'no-param-reassign': 0,
'no-return-assign': 0,
'no-constant-condition': ['error', { checkLoops: false }],
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'import/no-default-export': 1,
'import/prefer-default-export': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
},
};