-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
110 lines (110 loc) · 2.15 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2021
},
"parser": "@babel/eslint-parser",
"env": {
"node": true,
"commonjs": true,
"browser": true
},
"extends": [
"airbnb",
"eslint:recommended",
"airbnb/hooks",
"prettier",
"prettier/react"
],
"plugins": [
"@babel",
"react",
"react-hooks",
"jsx-a11y",
"import",
"prettier"
],
"rules": {
"prettier/prettier": [
"warn",
{
"semi": false,
"tabWidth": 2,
"endOfLine": "auto",
"printWidth": 80,
"singleQuote": false,
"jsxSingleQuote": true,
"trailingComma": "none",
"parser": "babel"
}
],
"no-unused-vars": "warn",
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"linebreak-style": "off",
"object-curly-newline": "off",
// [
// "warn",
// {
// "ObjectExpression": "always",
// "ObjectPattern": {
// "multiline": true
// },
// "ImportDeclaration": {
// "multiline": true,
// "minProperties": 2
// },
// "ExportDeclaration": {
// "multiline": true,
// "minProperties":
// }
// }
// ],
"quotes": "off",
"no-use-before-define": "warn",
"no-trailing-spaces": [
"warn",
{
"skipBlankLines": true
}
],
"comma-dangle": "off",
"semi": "off",
"no-shadow": [
"warn",
{
"builtinGlobals": false,
"hoist": "functions",
"allow": []
}
],
"consistent-return": "off",
"arrow-body-style": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off"
},
"settings": {
"import/resolver": {
"node": {
"paths": [
"src"
]
}
}
}
}