-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
68 lines (68 loc) · 1.76 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
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true,
"cypress/globals": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:flowtype/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jest/recommended",
"plugin:cypress/recommended"
],
"plugins": ["flowtype", "react", "promise", "jest", "cypress"],
"rules": {
"comma-dangle": [2, "always-multiline"],
"jsx-quotes": ["error", "prefer-double"],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "unix"],
"newline-before-return": ["error"],
"no-case-declarations": ["error"],
"no-console": [0],
"no-else-return": ["error"],
"no-extra-semi": ["error"],
"no-multi-spaces": ["error"],
"no-multiple-empty-lines": ["error"],
"no-trailing-spaces": ["error"],
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "double"],
"react/prop-types": 0,
"react/react-in-jsx-scope": 0,
"semi": ["error", "always"],
"sort-imports": [
"error",
{
"ignoreCase": true,
"memberSyntaxSortOrder": ["none", "all", "single", "multiple"]
}
],
"sort-keys": ["warn", "asc", { "natural": true }],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": [
"error",
{ "anonymous": "never", "named": "never", "asyncArrow": "always" }
],
"space-in-parens": ["error", "never"],
"wrap-iife": ["error", "inside"]
},
"globals": {},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"flowVersion": "0.98.1"
},
"settings": {
"react": {
"version": "detect"
}
}
}