-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
59 lines (59 loc) · 1.57 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
{
"plugins": [
"prettier",
"@typescript-eslint",
"react-hook-form",
"jest-dom",
"testing-library"
],
"extends": [
"airbnb-typescript",
"react-app",
"prettier",
"plugin:react-hook-form/recommended",
"plugin:jest-dom/recommended",
"plugin:testing-library/react"
],
"rules": {
"prettier/prettier": "error",
"react-hooks/rules-of-hooks": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],
"comma-dangle": ["error", "always-multiline"],
"object-curly-spacing": ["error", "always"],
"space-in-parens": ["error", "never"],
"computed-property-spacing": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"eol-last": ["error", "always"],
"import/no-anonymous-default-export": 0,
"object-shorthand": "error",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" }
],
"@typescript-eslint/no-redeclare": 0,
"@typescript-eslint/semi": ["off"],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "none"
}
],
"react/jsx-key": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "off",
//devDependencies 가 false면 devDependencies에서 라이브러리를 가져올 때 error가 표시된다
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
]
},
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"jest": true
}
}