-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc
63 lines (63 loc) · 1.05 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
{
"root": true,
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module"
},
"settings": {
"react": {
"pragma": "React",
"version": "15.0"
}
},
"env": {
"node": true,
"mocha": true,
"browser": true,
"jest": true,
"amd": true,
"cypress/globals": true
},
"extends": ["standard", "plugin:react/recommended", "react-app"],
"plugins": ["prettier", "react", "cypress"],
"globals": {
"alertify": true,
"page": true
},
"rules": {
"max-len": [
"error",
{
"code": 150
}
],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-console": "warn",
"quotes": [
2,
"double",
{
"avoidEscape": true
}
],
"indent": [2, "tab"],
"no-tabs": 0,
"arrow-parens": 0,
"no-var": 2,
"prefer-const": 1,
"camelcase": 0,
"no-underscore-dangle": 2,
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true,
"align": "colon"
}
],
"object-curly-spacing": ["error", "always"],
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"]
}
}