-
Notifications
You must be signed in to change notification settings - Fork 184
/
.eslintrc.cjs
54 lines (54 loc) · 1.22 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
44
45
46
47
48
49
50
51
52
53
54
module.exports = {
extends: 'airbnb-base',
env: {
mocha: true,
browser: true,
worker: true,
node: true,
},
ignorePatterns: [
'test/lib/**/*',
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'no-underscore-dangle': 0,
'class-methods-use-this': 0,
'no-plusplus': 0,
'no-loop-func': 0,
'no-mixed-operators': [
'error', {
allowSamePrecedence: true,
},
],
'no-param-reassign': [
'error', {
props: false,
},
],
'no-prototype-builtins': 0,
'no-restricted-syntax': [
'error',
'LabeledStatement',
'WithStatement',
],
'no-console': 0,
'no-bitwise': 0,
'max-classes-per-file': 0,
'max-len': ['error', { code: 130 }],
'import/prefer-default-export': 0,
'import/extensions': ['error', 'always'],
'prefer-default-export': 0,
'func-names': 0,
'arrow-body-style': 0,
'function-paren-newline': 0,
'object-curly-newline': 0,
'no-await-in-loop': 0,
'prefer-destructuring': ['error', { object: true, array: false }],
curly: ['error', 'all'],
'brace-style': ['error', '1tbs', { allowSingleLine: false }],
'no-else-return': 0,
},
};