forked from jkk/shinkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
82 lines (82 loc) · 1.75 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
77
78
79
80
81
82
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"pragma": "React",
"version": "16.5.0"
}
},
"env": {
"node": true,
"es6": true,
"browser": true
},
"globals": {
"it": true,
"test": true,
"expect": true
},
"extends": [
"plugin:flowtype/recommended",
"plugin:react/recommended",
"prettier",
"prettier/flowtype",
"prettier/react",
"prettier/standard"
],
"plugins": ["flowtype", "react", "prettier"],
"rules": {
"flowtype/define-flow-type": 1,
"flowtype/use-flow-type": 1,
"flowtype/space-after-type-colon": [1, "always"],
"flowtype/space-before-type-colon": [1, "never"],
"react/react-in-jsx-scope": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 2,
"react/jsx-no-undef": 2,
"react/no-multi-comp": 0,
"react/prop-types": 0,
"react/display-name": 0,
"react/wrap-multilines": 0,
"react/self-closing-comp": 0,
"react/jsx-indent": ["error", 2],
"react/no-find-dom-node": 0,
"jsx-quotes": ["error", "prefer-double"],
"quotes": [
2,
"double",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"prettier/prettier": [
"error",
{
"singleQuote": false,
"trailingComma": "es5",
"jsxBracketSameLine": true
}
],
"semi": 2,
"curly": 2,
"dot-notation": 2,
"eqeqeq": 2,
"valid-typeof": 2,
"consistent-return": 0,
"no-shadow": 2,
"no-undef": 2,
"no-cond-assign": 2,
"no-unused-vars": 2,
"no-extra-semi": 2,
"no-unreachable": 2,
"no-useless-constructor": 2,
"no-console": 0,
"no-use-before-define": 2
}
}