-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
47 lines (47 loc) · 1.21 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
{
"parser": "babel-eslint",
"extends": [
"standard",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"prettier",
"prettier/flowtype",
"prettier/react",
"prettier/standard",
],
"env": {
"es6": true,
"node": true,
"browser": true,
"jest": true,
},
"plugins": [
"flowtype",
"react",
"prettier",
"standard",
"import",
"jsx-a11y",
],
"rules": {
"no-console": ["warn", { allow: ["info", "warn", "error"] }],
"no-debugger": "warn",
"no-confusing-arrow": "error",
"no-constant-condition": "warn",
"max-len": ["error", {"code": 80, "ignoreUrls": true}],
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"linebreak-style": 0,
"react/jsx-no-duplicate-props": 2,
"react/jsx-indent": [2, 2],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prop-types": "warn",
"import/named": 0,
"import/no-named-as-default-member": 0,
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
"prettier/prettier": "error",
}
}