-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
66 lines (66 loc) · 1.86 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
{
"parser" : "babel-eslint",
"plugins": [
"import",
"jsdoc",
"require-jsdoc"
],
"extends" : ["airbnb"],
"rules": {
"class-methods-use-this": 0,
"comma-dangle": 0, // Nobody cares about commas.
"curly": 0, // Do not mess up code with {} for one-line ifs.
"default-case": 0, // Required default case is nonsense.
"function-paren-newline": 0,
"import/default": 2,
"import/export": 2,
"import/named": 2,
"import/namespace": 2,
"import/no-named-as-default": 0,
"import/no-unresolved": [2, {"commonjs": true}],
"jsx-a11y/label-has-for": 0,
"key-spacing": [2, {"beforeColon": false, "afterColon": true, "mode": "minimum"}], // Enable use of nice block object creation.
"max-len": 0,
"new-cap": [2, {"capIsNew": false, "newIsCap": true}], // For Record() etc.
"no-floating-decimal": 0, // .5 is just fine.
"no-shadow": 0, // Shadowing is a nice language feature.
"no-underscore-dangle": 0,
"no-use-before-define": 0, // Enable to define styles after using them in component.
"react/forbid-prop-types": 0,
"react/jsx-no-bind": 0, // Enable arrow functions in Props definitions.
"react/prefer-stateless-function": 0, // Enable functions with state.
"react/require-default-props": 0,
"react/jsx-filename-extension": 0,
"require-jsdoc": 0,
"valid-jsdoc": 2
},
"globals": {
"jest": false,
"after": false,
"afterEach": false,
"before": false,
"beforeEach": false,
"console": false,
"describe": false,
"it": false,
"expect": false,
"module": false,
"process": false,
"require": false,
"window": false
},
"settings": {
"import/ignore": [
"node_modules",
"\\.json$"
],
"import/parser": "babel-eslint",
"import/resolve": {
"extensions": [
".js",
".jsx",
".json"
]
}
}
}