-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
44 lines (44 loc) · 1.05 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
module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
},
extends: [
'airbnb-base',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
},
rules: {
indent: ['error', 4, { SwitchCase: 1 }],
'no-tabs': 0,
'consistent-return': 0,
'no-console': 0,
'no-plusplus': 0,
'max-len': 0,
'no-continue': 0,
eqeqeq: 1,
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'prefer-destructuring': ['error', {
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: false,
object: false,
},
}],
radix: ['error', 'as-needed'],
'no-control-regex': 0,
camelcase: 1,
'no-restricted-syntax': ['error', 'LabeledStatement', 'WithStatement'],
},
};