-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
51 lines (51 loc) · 1.55 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"plugins": [
"react"
],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"rules": {
"comma-dangle": ["error", "always-multiline"],
"quotes": "off",
"no-var": "error",
"prefer-const": "error",
"indent": "off",
"camelcase": ["error", { "properties": "never" }],
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"jsx-quotes": "off",
"operator-linebreak": "off",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }],
"no-unused-vars": "warn",
"space-before-function-paren": "off",
"space-infix-ops": "off",
"no-multi-spaces": ["warn", { "ignoreEOLComments": true }],
"handle-callback-err": "off",
"no-return-await": "off",
"promise/avoid-new": "off",
"promise/param-names": "off",
"promise/always-return": "off",
"prefer-promise-reject-errors": "off",
"react/prefer-stateless-function": [
"warn",
{ "ignorePureComponents": true }
],
"react/sort-comp": "warn",
"react/jsx-max-props-per-line": [1, { "when": "multiline" }]
},
"settings": {
"react": {
"pragma": "React",
"version": "16.2.0"
}
}
}