-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc
76 lines (76 loc) · 1.64 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
{
"env": {
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"prettier",
"eslint-config-i-am-meticulous/react"
],
"globals": {
},
"plugins": [
"prettier",
"react"
],
"rules": {
"comma-dangle": 0,
"curly": [2, "all"],
"eol-last": "error",
"eqeqeq": [2, "smart"],
"keyword-spacing": 2,
"linebreak-style": [2, "unix"],
"new-cap": [2, {"newIsCap": true, "capIsNew": false}],
"no-cond-assign": 0,
"no-console": ["error", { "allow": ["warn", "error", "log", "debug"] }],
"no-spaced-func": 2,
"no-use-before-define": 0,
"no-unused-vars": ["error", { "args": "none" }],
"no-useless-concat": "error",
"one-var": [2, "never"],
"prefer-template": "error",
"quotes": ["error", "double"],
"semi": [2, "always"],
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": 2,
"react/no-did-mount-set-state": 0,
"react/jsx-no-bind": [
"error",
{
"ignoreRefs": true,
"allowArrowFunctions": true,
"allowFunctions": true,
"allowBind": true
}
],
"import/max-dependencies": [
"error",
{
"max": 25
}
],
"react/jsx-no-literals": 0,
"prettier/prettier": [
"error",
{
"singleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"parser": "babel"
}
]
},
"parserOptions": {
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
}
}