-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
39 lines (39 loc) · 1.06 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "@tanstack/query"],
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:tailwindcss/recommended",
"prettier",
"plugin:@tanstack/eslint-plugin-query/recommended"
],
"rules": {
// 'React' must be in scope when using JSX 에러 해결
"react/react-in-jsx-scope": "off",
// 디펜더시 warning 끔
"react-hooks/exhaustive-deps": "off",
"react/display-name": "off",
// ts파일에서 tsx구문 허용
"react/jsx-filename-extension": [1, { "extensions": [".ts", ".tsx"] }],
"prettier/prettier": [
"warn",
{
"endOfLine": "auto"
}
],
"@typescript-eslint/no-unused-vars": "off",
"import/no-anonymous-default-export": "off",
"@typescript-eslint/no-explicit-any": "off"
},
"ignorePatterns": [
"dist/",
"postcss.config.js",
"tailwind.config.ts",
"vite.config.ts"
]
}