-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
62 lines (62 loc) · 1.58 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
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
"babelOptions": {
"presets": ["@babel/preset-react"],
},
},
"extends": ["airbnb", "plugin:prettier/recommended"],
"plugins": ["react", "jsx-a11y", "import"],
"rules": {
"no-param-reassign": [
"error",
{
"props": true,
"ignorePropertyModificationsFor": [
"state", // Redux Toolkit에서 사용되는 state 객체에 대한 수정을 허용
],
},
],
"jsx-a11y/label-has-associated-control": [
"error",
{
"controlComponents": ["Input"],
},
],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"import/no-unresolved": "off",
"import/extensions": "off",
"react/destructuring-assignment": "off",
"prettier/prettier": ["error"],
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/jsx-filename-extension": [
"error",
{ "extensions": [".jsx", ".js"] },
],
"react/function-component-definition": [
2,
{
"namedComponents": [
"arrow-function",
"function-declaration",
"function-expression",
],
"unnamedComponents": ["function-expression", "arrow-function"],
},
],
"import/prefer-default-export": "off",
"react/button-has-type": "off",
},
"env": {
"browser": true,
"node": true,
},
}