This repository has been archived by the owner on May 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
75 lines (72 loc) · 1.67 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
module.exports = {
'parser': 'babel-eslint',
'extends': ['eslint:recommended'],
'env': {
'browser': true,
'node': true,
'es6': true,
'jquery': true,
},
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module',
},
'globals': {
'__DEV__': true
},
'rules': {
'no-console': 0,
'max-len': ['error', {
'code': 120,
'ignoreUrls': true,
'ignoreTemplateLiterals': true,
'ignoreRegExpLiterals': true,
}],
'guard-for-in': 2,
'no-plusplus': 0,
'no-caller': 2,
'no-extend-native': 2,
'no-new-wrappers': 2,
'semi': 2,
'array-bracket-spacing': [2, 'never'],
'block-spacing': [2, 'never'],
'brace-style': 2,
'comma-dangle': [2, 'never'],
'comma-spacing': 2,
'comma-style': 2,
'computed-property-spacing': 2,
'eol-last': 2,
'func-call-spacing': 2,
"indent": [2, 2],
'key-spacing': 2,
'keyword-spacing': 2,
'new-cap': 2,
'no-array-constructor': 2,
'no-multiple-empty-lines': [2, {
'max': 2
}],
'no-multi-spaces': 2,
'no-multi-str': 2,
'no-new-object': 2,
'no-tabs': 2,
'no-trailing-spaces': 2,
'operator-linebreak': 2,
'quotes': [2, 'single'],
'semi-spacing': 2,
'space-before-blocks': 2,
'multiline-comment-style': [2, 'starred-block'],
'space-before-function-paren': [2, {
'anonymous': 'never',
'named': 'never',
}],
'spaced-comment': [2, 'always'],
'switch-colon-spacing': 2,
// ES6.
'generator-star-spacing': [2, 'after'],
'no-var': 2,
'prefer-rest-params': 2,
'prefer-spread': 2,
'rest-spread-spacing': 2,
'yield-star-spacing': [2, 'after'],
}
}