-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
38 lines (38 loc) · 1013 Bytes
/
.eslintrc
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
{
'extends': 'eslint:recommended',
'rules': {
'array-callback-return': 'error',
'arrow-parens': ['error', 'as-needed', {
requireForBlockBody: true,
}],
'arrow-spacing': ['error', { before: true, after: true }],
'block-scoped-var': 'error',
'consistent-return': 'error',
'dot-notation': ['error', { allowKeywords: true }],
'dot-location': ['error', 'property'],
'eqeqeq': ['error', 'always', { null: 'ignore' }],
'no-else-return': 'error',
'no-loop-func': 'error',
'no-magic-numbers': ['error', {
ignore: [],
ignoreArrayIndexes: true,
enforceConst: true,
detectObjects: false,
}],
'no-multi-spaces': 'error',
'no-param-reassign': ['error', { props: true }],
'no-redeclare': 'error',
'no-return-assign': 'error',
'valid-jsdoc': 'warn'
},
'env': {
'browser': true,
'commonjs': true,
'es6': true,
'node': true
},
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module'
}
}