-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
52 lines (50 loc) · 1.36 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
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
},
env: {
browser: true,
node: true,
mocha: true,
},
extends: 'airbnb-base',
rules: {
'max-len': 0,
'no-bitwise': 0,
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'no-restricted-globals': 0,
'class-methods-use-this': 0,
'consistent-return': 0,
'no-use-before-define': 0,
'prefer-destructuring': 0,
'global-require': 0,
'indent': [2, 2, { SwitchCase: 1 }],
'linebreak-style': [2, 'unix'],
'no-trailing-spaces': 2,
'eol-last': [2, 'always'],
'no-multiple-empty-lines': [2, { max: 1 }],
'no-unused-expressions': [2, { 'allowShortCircuit': true, 'allowTernary': true }],
'object-curly-newline': [2, { 'multiline': true }],
'no-plusplus': [2, { 'allowForLoopAfterthoughts': true }],
'radix': [2, 'as-needed'],
'quote-props': [2, 'as-needed', { 'numbers': true }],
'semi': [2, 'never'],
'camelcase': [2, { properties: 'never' }],
'comma-dangle': [2, 'always-multiline'],
'arrow-parens': [2, 'as-needed'],
'space-before-function-paren': [
2,
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}
],
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'import/prefer-default-export': 0,
},
globals: {}
}