-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
60 lines (59 loc) · 1.49 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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
jquery: true
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
"key-spacing": [1, {
"align": "colon",
"beforeColon": true,
"afterColon": true
}],
"semi" : 1,
"space-before-function-paren" : 1,
"padded-blocks" : 0,
"keyword-spacing" : 1,
"no-multi-spaces" : 1,
"space-infix-ops" : 1,
"no-unused-vars" : 1,
"no-multiple-empty-lines" : 1,
"indent" : [1, 4],
"quotes" : 1,
"no-duplicate-imports" : 1,
"eqeqeq" : 1,
"no-undef" : 1,
"object-property-newline" : 1,
"camelcase" : 1,
"curly" : 1,
"no-irregular-whitespace" : 1,
"eol-last" : 1,
"no-redeclare" : 1,
"operator-linebreak" : 1,
"comma-spacing" : 1,
"no-throw-literal" : 1,
"standard/object-curly-even-spacing" : 1,
"comma-dangle" : 1,
"arrow-spacing" : 1,
"spaced-comment" : 1,
"space-before-blocks" : 1,
"one-var" : 1,
"no-trailing-spaces" : 1,
"no-sequences" : 1,
"space-in-parens" : 1
}
}