forked from freeCodeCamp/pantry-for-good
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
43 lines (43 loc) · 1.03 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"mocha": true,
"node": true
},
"globals": {
"$": true,
"_": true,
"console": true,
"expect": true,
"google": true,
"initDb": true,
"module": true,
"process": true,
"resetDb": true,
"sinon": true,
"supertest": true
},
"plugins": [
"react"
],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"rules": {
"arrow-parens": ["warn", "as-needed"],
"indent": [2, 2, {"SwitchCase": 1}],
"react/prop-types": "off",
"semi": ["warn", "never"],
"no-console": ["error", { "allow": ["info", "warn", "error"] }],
"react/no-deprecated": "off"
}
}