-
Notifications
You must be signed in to change notification settings - Fork 43
/
.eslintrc
executable file
·76 lines (76 loc) · 2.1 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
{
"parser" : "babel-eslint",
"plugins": [
"import"
],
"extends" : ["airbnb"],
"rules": {
// Soft some rules.
"camelcase": "off",
"class-methods-use-this": "off",
"default-case": 0, // Required default case is nonsense.
"indent": [2, 4, { 'SwitchCase': 1, 'VariableDeclarator': 1 }],
"linebreak-style": "off",
"max-len": "off",
"new-cap": [2, {"capIsNew": false, "newIsCap": true}], // For Record() etc.
"newline-per-chained-call": 0,
"no-cond-assign": "off",
"no-floating-decimal": 0, // .5 is just fine.
"no-nested-ternary": 0, // It's nice for JSX.
"no-param-reassign": 0, // We love param reassignment. Naming is hard.
"no-plusplus": 0,
"no-prototype-builtins": 0,
"no-shadow": 0, // Shadowing is a nice language feature. Naming is hard.
"react/no-string-refs": 0,
"no-underscore-dangle": "off",
// eslint-plugin-import
"import/no-unresolved": [2, {"commonjs": true}],
"import/no-extraneous-dependencies": 0,
"import/named": 2,
"import/default": 2,
"import/namespace": 2,
"import/export": 2,
"func-names": ["error", "as-needed"],
// Overide Stateless
"react/prefer-stateless-function": 0,
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/no-unused-prop-types": 0,
"react/no-array-index-key": 0,
"react/forbid-prop-types": 0,
"react/require-default-props": 0,
"jsx-a11y/anchor-has-content": 0,
},
"globals": {
"after": false,
"afterEach": false,
"before": false,
"beforeEach": false,
"describe": false,
"it": false,
"require": false,
"window": true,
"localStorage": true,
"document": true,
"navigator": true,
"location": true,
"XMLHttpRequest": true,
"XDomainRequest": true,
"Blob": true,
},
"settings": {
"import/ignore": [
"node_modules",
"\\.json$"
],
"import/parser": "babel-eslint",
"import/resolve": {
"extensions": [
".js",
".jsx",
".json"
]
}
}
}