-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
71 lines (71 loc) · 1.99 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
parserOptions: {
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true // Allows for the parsing of JSX
},
project: './tsconfig.json',
},
plugins: [
'@typescript-eslint',
'unused-imports',
'simple-import-sort',
"no-floating-promise"
],
extends: ['standard-with-typescript'],
rules: {
'simple-import-sort/imports': 'warn',
'simple-import-sort/exports': 'warn',
'unused-imports/no-unused-imports': 'warn',
'no-return-assign': 'off',
'no-continue': 'off',
'no-plusplus': 'off',
'no-await-in-loop': 'off',
'linebreak-style': 'off',
'max-len': ['error', { code: 128 }],
'class-methods-use-this': 0,
'no-underscore-dangle': 0,
'no-use-before-define': 0,
'prefer-promise-reject-errors': 'off',
'no-undef': 0,
'no-nested-ternary': 0,
'no-unused-expressions': 0,
'no-new': 0,
'consistent-return': 0,
'node/no-callback-literal': 0,
'no-restricted-syntax': [
'error',
'ForOfStatement',
'LabeledStatement',
'WithStatement'
],
"@typescript-eslint/semi": ["error", "never"],
'arrow-body-style': 0,
'no-eval': 0,
'no-loop-func': 0,
'no-param-reassign': 0,
"no-floating-promise/no-floating-promise": 2,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'import/no-unresolved': 0,
'import/extensions': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/strict-boolean-expressions': 0,
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-misused-promises': 0,
},
overrides: [
{
files: [
'./src/app.ts'
],
rules: {
'import/first': 0
}
}
]
}