-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc
58 lines (58 loc) · 1.69 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
{
"env": {
"browser": true
},
"extends": ["eslint:recommended", "plugin:react/recommended", "airbnb"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
],
"rules": { # 0 = disabled, 1 = warn, 2 = error
# Disabled
"comma-dangle": 0,
"no-eq-null": 0,
"no-console": 0,
"no-tabs": 0,
"consistent-return": 0,
"global-require": 0,
"no-use-before-define": 0,
"max-len": 0,
"no-shadow": 0,
"padded-blocks": 0,
"react/no-string-refs": 0, // NOTE -- Temporarily disabled -- utilization of string refs should be refactored to utilize state
"react/no-unused-prop-types": 0, // NOTE -- Temporarily disabled -- all passed props should be specific, utilized, and verified
"react/forbid-prop-types": 0, // NOTE -- TODO: Temporarily disabled...all props need to be specific + valid + will remove the necessity for separate 'shape' tests once merged into Augur
# Errors
"eqeqeq": [2, "allow-null"],
"indent": [2, "tab", { "SwitchCase": 1 }],
"no-unused-expressions": [2, { "allowShortCircuit": true }],
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
"no-param-reassign": [2, { "props": false }],
"no-underscore-dangle": [2, { "allow": ["_id"] }],
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"],
"no-plusplus": [2, { "allowForLoopAfterthoughts": true }],
"no-useless-rename": 2,
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true}]
},
"settings": {
"import/resolver": {
"node": {
extensions: [
"",
".js",
".jsx"
],
"moduleDirectory": [
"node_modules",
"src" # prevents linting issues w/ aliased paths
]
}
}
}
}