-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
104 lines (103 loc) · 3 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11
},
"plugins": [
"@typescript-eslint",
"prettier",
"react",
"react-hooks",
"simple-import-sort",
"import",
"@tanstack/query"
// "no-null",
],
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@next/next/recommended",
"plugin:storybook/recommended",
"airbnb-base",
"airbnb-typescript/base",
"prettier",
"plugin:@tanstack/eslint-plugin-query/recommended",
"plugin:tailwindcss/recommended"
],
"rules": {
"prettier/prettier": ["error", { "endOfLine": "auto" }], // Delete `␍` prettier/prettier 해결 방법
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": "warn", // "error",
"@typescript-eslint/consistent-type-imports": "error",
"import/extensions": "off",
"import/first": "error",
"import/prefer-default-export": "off",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-nested-ternary": "off",
// "import/no-extraneous-dependencies": [
// "error",
// {
// "devDependencies": ["**/*.test.js", "**/*.spec.js", "**/test/**/*.js"],
// "optionalDependencies": false,
// "peerDependencies": false
// }
// ],
"no-restricted-syntax": "off",
"no-restricted-imports": [
"warn",
{
"patterns": ["./*", "../*"]
}
],
"react-hooks/rules-of-hooks": "warn",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"arrow-body-style": "off",
"class-methods-use-this": "off",
"no-plusplus": "off",
"radix": "off",
"consistent-return": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"curly": ["error", "multi-line", "consistent"],
"nonblock-statement-body-position": ["error", "beside"],
"no-use-before-define": "off",
// "no-null/no-null": 2,
"@tanstack/query/exhaustive-deps": "error",
"@tanstack/query/no-rest-destructuring": "warn",
"@tanstack/query/stable-query-client": "error"
},
"settings": {
"react": {
"version": "detect"
}
},
"globals": {
"React": "writable"
},
// "overrides": [
// {
// "files": ["pages/api/*.js"],
// "parser": "@babel/eslint-parser"
// }
// ],
// "ignorePatterns": ["components/*.jsx", "pages/api/*.js"]
"ignorePatterns": ["components/*.jsx", "app/api/*.js"]
}