|
1 | 1 | {
|
2 | 2 | "parser": "@typescript-eslint/parser",
|
| 3 | + |
3 | 4 | "parserOptions": {
|
4 |
| - "project": ["./apps/client/tsconfig.json"], |
| 5 | + "project": ["./tsconfig.json"], |
5 | 6 | "ecmaVersion": 12,
|
6 | 7 | "sourceType": "module",
|
7 | 8 | "ecmaFeatures": {
|
8 | 9 | "jsx": true
|
9 | 10 | }
|
10 | 11 | },
|
| 12 | + |
11 | 13 | "env": {
|
12 | 14 | "browser": true,
|
13 | 15 | "es2021": true
|
14 | 16 | },
|
15 |
| - "extends": [ |
16 |
| - "eslint:recommended", |
17 |
| - "plugin:react/recommended", |
18 |
| - "plugin:react-hooks/recommended", |
19 |
| - "plugin:@typescript-eslint/recommended", |
20 |
| - "prettier" |
21 |
| - ], |
| 17 | + |
| 18 | + "extends": ["airbnb", "airbnb/hooks", "plugin:@typescript-eslint/recommended", "prettier"], |
| 19 | + |
22 | 20 | "settings": {
|
23 | 21 | "react": {
|
24 | 22 | "version": "detect"
|
25 | 23 | }
|
26 | 24 | },
|
| 25 | + |
27 | 26 | "plugins": ["prettier"],
|
| 27 | + |
28 | 28 | "rules": {
|
| 29 | + // React 관련 규칙 |
29 | 30 | "react/react-in-jsx-scope": "off",
|
30 | 31 | "react/no-unescaped-entities": "off",
|
31 | 32 | "react/prop-types": "off",
|
32 |
| - "react-hooks/exhaustive-deps": "warn", |
| 33 | + "react/jsx-filename-extension": [ |
| 34 | + "warn", |
| 35 | + { |
| 36 | + "extensions": [".js", ".jsx", ".ts", ".tsx"] |
| 37 | + } |
| 38 | + ], |
| 39 | + "react/require-default-props": "off", |
| 40 | + "react/jsx-props-no-spreading": "off", |
| 41 | + |
| 42 | + // TypeScript 관련 규칙 |
33 | 43 | "@typescript-eslint/no-explicit-any": "warn",
|
34 | 44 | "@typescript-eslint/no-unused-vars": [
|
35 | 45 | "error",
|
|
38 | 48 | "varsIgnorePattern": "^_", // _ 로 시작하는 변수는 무시
|
39 | 49 | "ignoreRestSiblings": true
|
40 | 50 | }
|
| 51 | + ], |
| 52 | + |
| 53 | + // Import/Export 관련 규칙 |
| 54 | + "import/no-unresolved": "off", |
| 55 | + "import/extensions": ["off"], |
| 56 | + "import/prefer-default-export": "off", |
| 57 | + "no-restricted-exports": "warn", |
| 58 | + |
| 59 | + // 접근성 관련 규칙 |
| 60 | + "jsx-a11y/media-has-caption": "off", |
| 61 | + |
| 62 | + // 기타 규칙 |
| 63 | + "no-param-reassign": [ |
| 64 | + "warn", |
| 65 | + { |
| 66 | + "props": false |
| 67 | + } |
41 | 68 | ]
|
42 | 69 | }
|
43 | 70 | }
|
0 commit comments