-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (50 loc) · 1.34 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: ["airbnb", "prettier"],
plugins: ["prettier"],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
rules: {
"prettier/prettier": ["error", { trailingComma: "all" }],
"react/function-component-definition": "off",
"no-unused-vars": "off",
"linebreak-style": 0,
"import/no-dynamic-require": 0,
"import/no-unresolved": 0,
"import/no-named-as-default": 0,
"import/prefer-default-export": 0,
"global-require": 0,
"import/no-extraneous-dependencies": 0,
"jsx-quotes": ["error", "prefer-double"],
"react/jsx-props-no-spreading": 0,
"react/forbid-prop-types": 0,
"react/jsx-filename-extension": [2, { extensions: [".js", ".jsx"] }],
"import/extensions": 0,
"no-use-before-define": 0,
"no-shadow": "off",
"react/prop-types": "off",
"no-empty-pattern": 0,
"no-alert": 0,
"react-hooks/exhaustive-deps": 0,
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"jsx-a11y/label-has-associated-control": [
2,
{
labelComponents: [],
labelAttributes: ["htmlFor"], // 수정된 부분
controlComponents: [],
assert: "htmlFor",
depth: 25,
},
],
},
};