-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
86 lines (86 loc) · 2.12 KB
/
.eslintrc.json
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
83
84
85
86
{
"root": true,
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"extends": [
"airbnb",
"plugin:flowtype/recommended",
"prettier"
],
"plugins": [
"react",
"import",
"flowtype",
"flowtype-errors",
"prettier"
],
"settings": {
"import/resolver": {
"babel/module": {}
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"valid-jsdoc": [
"error",
{
"prefer": {
"arg": "param",
"return": " returns"
},
"requireReturnType": false,
"requireReturn": false
}
],
"no-use-before-define": "off",
"no-param-reassign": ["error", { "props": false }],
"no-underscore-dangle": ["warn", { "allow": ["_id", "_rev", "_path"] }],
"handle-callback-err": "error",
"no-unused-vars": ["error", { "vars": "local", "args": "none" }],
"no-unused-expressions": ["error", { "allowTernary": true }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/prop-types": "off",
"react/no-unused-prop-types": "warn",
"react/button-has-type": 0,
//
"quotes": ["error", "double"],
"semi": [2, "never"],
// "prettier/prettier": ["error", {
// "tabWidth": 4, "semi": false, "printWidth": 120,
// "doubleQuote": true
// }],
"prettier/prettier": ["error", {
"tabWidth": 4, "semi": false, "printWidth": 120,
"singleQuote": false, "trailingComma": "es5",
"comma-dangle": "always"
}],
"react/jsx-indent": ["error", 4],
"flowtype-errors/show-errors": "error",
"flowtype": 2,
"jsx-a11y/heading-has-content": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"jsx-a11y/alt-text": "off",
"prefer-destructuring": "off",
"react/no-did-mount-set-state": "off",
"react/sort-comp": "off",
"no-console": "off"
}
}