This repository has been archived by the owner on Feb 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
59 lines (59 loc) · 1.45 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
{
"extends": [
"prettier",
"prettier/react"
],
"settings": {
"react": {
"version": "detect"
}
},
"parser":"babel-eslint",
"rules": {
"require-jsdoc":"warn",
"no-useless-escape":"error",
"block-spacing":["warn", "never"],
"semi": [2, "never"],
"no-trailing-spaces":"error",
"space-unary-ops":"error",
"no-mixed-spaces-and-tabs":"error",
"indent": ["error", 2],
"no-multiple-empty-lines":"error",
"no-console":["warn", { "allow": ["warn", "error"]}],
"object-property-newline":["error", {"allowAllPropertiesOnSameLine": true}],
"object-curly-spacing":"error",
"prefer-template":"warn",
"arrow-spacing":"error",
"jsx-quotes":"error",
"prefer-arrow-callback":"warn",
"no-duplicate-imports":"error",
"dot-location":["error", "property"],
"no-multi-spaces":"error",
"radix":"error",
"comma-dangle":["error", "never"],
"prefer-const":"error",
"array-bracket-newline":"error",
"react/sort-comp": "error",
"react/jsx-closing-bracket-location": "error",
"react/jsx-handler-names":"error",
"react/jsx-sort-props":"error",
"react/no-deprecated": "warn",
"lines-between-class-members":"error"
},
"parserOptions": {
"sourceType":"module",
"ecmaVersion": 9,
"ecmaFeatures": {
"jsx": true,
"classes": true
}
},
"env": {
"browser": true,
"node": true
},
"plugins": [
"prettier",
"react"
]
}