-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
62 lines (62 loc) ยท 1.82 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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"settings": {
"import/resolver": {
"node": {
"paths": ["src"] //์ ๋๊ฒฝ๋ก ์ค์
}
}
},
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"import/no-extraneous-dependencies": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "warn",
"prettier/prettier": 0,
"no-param-reassign": 0, // slice ์ฌํ ๋น์ค๋ฅ ์๋จ๊ฒ
"no-alert": "off", // alert ์ค๋ฅ ๋๊ธฐ
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/jsx-no-bind": [
"warn",
{
"ignoreDOMComponents": false,
"ignoreRefs": false,
"allowArrowFunctions": true,
"allowFunctions": true,
"allowBind": false
}
],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/button-has-type": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".ts", ".tsx"] }],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never",
"": "never"
}
],
"jsx-a11y/label-has-associated-control": [
2,
{
"labelAttributes": ["htmlFor"]
}
]
}
}