|
14 | 14 | "plugin:import/typescript", |
15 | 15 | "plugin:react/jsx-runtime" |
16 | 16 | ], |
| 17 | + "ignorePatterns": [ |
| 18 | + "babel-plugin-macros.config.js", |
| 19 | + "tailwind.config.js", |
| 20 | + "prettier.config.js", |
| 21 | + "postcss.config.js", |
| 22 | + "vite.config.ts" |
| 23 | + ], |
17 | 24 | "parser": "@typescript-eslint/parser", |
18 | 25 | "parserOptions": { |
19 | 26 | "ecmaVersion": 12, |
|
32 | 39 | "@typescript-eslint/no-shadow": "off", |
33 | 40 | "no-unused-vars": "off", |
34 | 41 | "@typescript-eslint/no-unused-vars": [ |
35 | | - 1, |
| 42 | + "warn", |
36 | 43 | { |
37 | 44 | "varsIgnorePattern": "^_", |
38 | 45 | "argsIgnorePattern": "^_" |
39 | 46 | } |
40 | 47 | ], |
41 | 48 | "@typescript-eslint/naming-convention": [ |
42 | | - "error", |
43 | | - { |
44 | | - "selector": "default", |
45 | | - "format": ["camelCase"], |
46 | | - "leadingUnderscore": "allow", |
47 | | - "trailingUnderscore": "allow" |
48 | | - }, |
| 49 | + "error", |
| 50 | + { |
| 51 | + "selector": "default", |
| 52 | + "format": ["camelCase"], |
| 53 | + "leadingUnderscore": "allow", |
| 54 | + "trailingUnderscore": "allow" |
| 55 | + }, |
49 | 56 |
|
50 | | - { |
51 | | - "selector": "variable", |
52 | | - "format": ["camelCase", "UPPER_CASE", "PascalCase"], |
53 | | - "leadingUnderscore": "allow", |
54 | | - "trailingUnderscore": "allow" |
55 | | - }, |
| 57 | + { |
| 58 | + "selector": "variable", |
| 59 | + "format": ["camelCase", "UPPER_CASE", "PascalCase"], |
| 60 | + "leadingUnderscore": "allow", |
| 61 | + "trailingUnderscore": "allow" |
| 62 | + }, |
56 | 63 |
|
57 | | - { |
58 | | - "selector": "function", |
59 | | - "format": ["camelCase", "PascalCase"] |
60 | | - }, |
| 64 | + { |
| 65 | + "selector": "function", |
| 66 | + "format": ["camelCase", "PascalCase"] |
| 67 | + }, |
61 | 68 |
|
62 | | - { |
63 | | - "selector": "typeLike", |
64 | | - "format": ["PascalCase"] |
65 | | - }, |
| 69 | + { |
| 70 | + "selector": "typeLike", |
| 71 | + "format": ["PascalCase"], |
| 72 | + "leadingUnderscore": "allow" |
| 73 | + }, |
66 | 74 |
|
67 | | - { |
68 | | - "selector": "objectLiteralProperty", |
69 | | - "format": null |
70 | | - } |
| 75 | + { |
| 76 | + "selector": "objectLiteralProperty", |
| 77 | + "format": null |
| 78 | + } |
71 | 79 | ], |
72 | 80 | "import/prefer-default-export": "off", |
73 | 81 | "import/no-extraneous-dependencies": ["error", { "devDependencies": true }], |
|
103 | 111 | "custom": "ignore" |
104 | 112 | } |
105 | 113 | ], |
106 | | - "react/no-unknown-property": [2, { "ignore": ["tw", "css"] }], |
| 114 | + "react/no-unknown-property": ["error", { "ignore": ["tw", "css"] }], |
107 | 115 | "react/require-default-props": "off", |
108 | 116 | "@typescript-eslint/consistent-type-imports": "error", |
109 | 117 | "no-void": "off", |
|
0 commit comments