-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
43 lines (42 loc) · 1.08 KB
/
.eslintrc.cjs
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
module.exports = {
'extends': 'qb',
env: {
node: true
},
plugins: ['simple-import-sort'],
parser: '@babel/eslint-parser',
parserOptions: {
// requireConfigFile: false,
ecmaVersion: 2021,
sourceType: 'module',
impliedStrict: true,
babelOptions: {
configFile: require('path').join(__dirname, '.babelrc.json')
}
},
rules: {
'id-length': ['off'],
'max-len': ['off'],
'id-blacklist': ['off'],
'no-plusplus': ['off'],
'line-comment-position': ['off'],
'no-inline-comments': ['off'],
'no-magic-numbers': ['off'],
'no-return-assign': ['off'],
camelcase: ['off'],
'no-console': ['off'],
'no-sync': ['off'],
'no-confusing-arrow': ['off'],
'no-await-in-loop': ['off'],
'no-unused-expressions': ['off'],
'newline-per-chained-call': ['off'],
'simple-import-sort/imports': ['warn', {
groups: [
['^[^.]'], // node modules, global imports
['^\\.'], // local imports
['^'] // any other imports (e.g. './styles')
]
}],
'simple-import-sort/exports': ['off']
}
};