-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
37 lines (37 loc) · 1005 Bytes
/
.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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"react/jsx-uses-vars": "off", //사용안하면 나는 에러
"react/prop-types": 0,
"react/react-in-jsx-scope": 0,
"no-unused-vars": "off", // 선언하고 호출하지 않은 변수나 함수 에러
"@typescript-eslint/no-unused-vars": "warn", // 선언하고 호출하지 않은 변수나 함수 에러
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": "off", //any
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}