-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
115 lines (106 loc) · 2.47 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"env": {
"node": true,
"mocha": true,
"browser": true,
},
"plugins": [
"react"
],
"rules": {
"no-trailing-spaces": 2,
"indent": [2, 2, {
"SwitchCase": 1
}],
"curly": 0,
"eqeqeq": 2,
"no-eq-null": 2,
"quotes": 0,
"strict": 0,
"consistent-this": 0,
"no-undef": 2,
"dot-notation": 0,
"space-infix-ops": 0,
"space-unary-ops": 0,
"no-underscore-dangle": 0,
"no-unused-vars": 2,
"comma-dangle": 0,
"semi-spacing": 0,
"consistent-return": 0,
"camelcase": 0,
"eol-last": 0,
"no-multi-spaces": 0,
"no-extra-boolean-cast": 0,
"no-use-before-define": 0,
"no-extra-bind": 0,
"no-eq-null": 0,
"no-shadow": 0,
"no-shadow-restricted-names": 0,
"no-alert": 0,
"no-empty": 0,
// Bah, this is really useful but we can't turn this on because of chai.
//
// See https://github.com/eslint/eslint/issues/2102
//
// Maybe use that chai-lint package someday? so many tests to modify...
"no-unused-expressions": 0,
"no-console": 0,
"space-return-throw-case": 0,
"one-var": [2, {
"initialized": "never"
}],
"no-cond-assign": [2, "except-parens"],
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty": 2,
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": 2,
"no-irregular-whitespace": 2,
"no-negated-in-lhs": 2,
"no-sparse-arrays": 2,
"no-unreachable": 0,
"use-isnan": 2,
"no-caller": 2,
"no-else-return": 0,
"no-eval": 2,
"no-implied-eval": 2,
"no-extend-native": 2,
"no-fallthrough": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-new": 2,
"no-redeclare": 2,
"no-return-assign": [2, "always"],
"no-sequences": 2,
"radix": 2,
"wrap-iife": [2, "any"],
"no-undef-init": 2,
"no-delete-var": 2,
"no-use-before-define": [2, "nofunc"],
"dot-location": [2, "property"],
"curly": [2, "multi-line"],
"no-shadow": 2,
"no-extra-bind": 2,
"react/jsx-uses-react": 2,
"react/jsx-no-undef": 2,
"react/react-in-jsx-scope": 2,
"react/prop-types": [0],
},
"ecmaFeatures": {
"blockBindings": true,
"arrowFunctions": true,
"classes": true,
"templateStrings": true,
"destructuring": true,
"objectLiteralShorthandMethods": true,
"spread": true,
"restParams": true,
"jsx": true,
},
"globals": {
"assert": false,
},
}