-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
99 lines (95 loc) · 2.16 KB
/
.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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"env": {
"browser": true,
"es6": true,
"jquery": true,
"node": true
},
"extends": "eslint:recommended",
"presets": [
"react",
"es2015"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"plugins": [
"transform-es2015-destructuring",
"transform-object-rest-spread"
],
"rules": {
"no-console": 0,
"no-extra-parens": 0,
"no-unsafe-negation": 2,
"block-scoped-var": 2,
"class-methods-use-this": 2,
"eqeqeq": [2, "smart"],
"no-extend-native": 2,
"no-extra-bind": 2,
"no-global-assign": 2,
"no-lone-blocks": 2,
"no-octal": 2,
"no-param-reassign": 2,
"no-proto": 2,
"no-return-assign": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-useless-concat": 2,
"no-useless-escape": 2,
"no-useless-return": 2,
"yoda": 2,
"strict": ["error", "function"],
"no-restricted-globals": 2,
"no-shadow-restricted-names": 2,
"no-undef-init": 2,
"no-undefined": 2,
"no-use-before-define": 2,
"no-unused-vars": 2,
"array-bracket-spacing": [2, "never"],
"block-spacing": [1, "always"],
"brace-style": [2, "stroustrup"],
"camelcase": 2,
"comma-spacing": 2,
"comma-style": 2,
"computed-property-spacing": 2,
"consistent-this": 1,
"func-call-spacing": 2,
"linebreak-style": [1, "unix"],
"lines-around-comment": [1, {
"beforeLineComment": true,
"allowBlockStart": false
}],
"lines-around-directive": [1, "always"],
"max-params": 1,
"new-cap": 2,
"new-parens": 2,
"no-lonely-if": 1,
"no-mixed-operators": 1,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 2,
"no-nested-ternary": 2,
"no-new-object": 1,
"no-trailing-spaces": 1,
"no-whitespace-before-property": 2,
"nonblock-statement-body-position": [2, "beside"],
"object-curly-spacing": [2, "never"],
"one-var-declaration-per-line": [2, "initializations"],
"quote-props": [2, "as-needed"],
"quotes": [1, "single"],
"semi": 1,
"space-before-blocks": [2, "always"],
"space-in-parens": [2, "never"],
"keyword-spacing": [2, {
"before": true,
"after": true
}],
"indent": [2, "tab", {
"SwitchCase": 1,
"MemberExpression": 1
}]
}
}