|
1 | | -const { resolve } = require('node:path'); |
| 1 | +const { resolve } = require("node:path"); |
2 | 2 |
|
3 | 3 | module.exports = { |
4 | 4 | root: true, |
5 | 5 | extends: [ |
6 | | - require.resolve('@vercel/style-guide/eslint/node'), |
7 | | - require.resolve('@vercel/style-guide/eslint/browser'), |
8 | | - require.resolve('@vercel/style-guide/eslint/typescript'), |
9 | | - 'plugin:tailwindcss/recommended', |
| 6 | + require.resolve("@vercel/style-guide/eslint/node"), |
| 7 | + require.resolve("@vercel/style-guide/eslint/browser"), |
| 8 | + require.resolve("@vercel/style-guide/eslint/typescript"), |
| 9 | + "plugin:tailwindcss/recommended", |
10 | 10 | ], |
11 | | - ignorePatterns: ['**/dist/**', '**/node_modules/**', '**/test/**'], |
| 11 | + ignorePatterns: ["**/dist/**", "**/node_modules/**", "**/test/**"], |
12 | 12 | parserOptions: { |
13 | 13 | project: [ |
14 | | - resolve(__dirname, 'tsconfig.json'), // Root tsconfig |
15 | | - resolve(__dirname, 'packages/scan/tsconfig.json'), // Scan package tsconfig |
| 14 | + resolve(__dirname, "tsconfig.json"), // Root tsconfig |
| 15 | + resolve(__dirname, "packages/scan/tsconfig.json"), // Scan package tsconfig |
16 | 16 | ], |
17 | 17 | ecmaVersion: 2020, |
18 | | - sourceType: 'module', |
| 18 | + sourceType: "module", |
19 | 19 | }, |
20 | 20 | rules: { |
21 | | - "@typescript-eslint/restrict-plus-operands":"off", |
22 | | - "@typescript-eslint/no-unused-vars":"warn", |
23 | | - '@typescript-eslint/explicit-function-return-type': 'off', |
24 | | - 'import/no-default-export': 'off', |
25 | | - 'no-bitwise': 'off', |
26 | | - '@typescript-eslint/prefer-optional-chain': 'off', |
27 | | - '@typescript-eslint/consistent-indexed-object-style': 'off', |
28 | | - 'import/no-extraneous-dependencies': 'off', |
29 | | - '@typescript-eslint/no-unsafe-call': 'off', |
30 | | - '@typescript-eslint/no-unsafe-return': 'off', |
31 | | - '@typescript-eslint/no-unsafe-argument': 'off', |
32 | | - '@typescript-eslint/no-explicit-any': 'off', |
33 | | - '@typescript-eslint/no-unsafe-assignment': 'off', |
34 | | - '@typescript-eslint/no-unsafe-member-access': 'off', |
35 | | - '@typescript-eslint/no-shadow': 'off', |
36 | | - '@typescript-eslint/no-non-null-assertion': 'off', |
37 | | - '@typescript-eslint/no-loop-func': 'off', |
38 | | - 'eslint-comments/disable-enable-pair': 'off', |
39 | | - 'import/no-cycle': 'off', |
40 | | - 'no-nested-ternary': 'off', |
41 | | - 'no-param-reassign': 'off', |
42 | | - 'tsdoc/syntax': 'off', |
43 | | - 'eslint-comments/require-description': 'off', |
44 | | - 'import/no-relative-packages': 'off', |
45 | | - '@typescript-eslint/no-unnecessary-condition': 'off', |
46 | | - '@typescript-eslint/no-confusing-void-expression': 'off', |
47 | | - '@typescript-eslint/require-await': 'off', |
48 | | - 'import/no-named-as-default': 'off', |
49 | | - 'no-implicit-coercion': 'off', |
50 | | - '@typescript-eslint/no-redundant-type-constituents': 'off', |
51 | | - 'object-shorthand': 'off', |
52 | | - "@typescript-eslint/no-unused-vars":"warn", |
53 | | - '@typescript-eslint/no-non-null-asserted-optional-chain': 'off', |
54 | | - 'no-useless-return': 'off', |
55 | | - 'func-names': 'off', |
56 | | - '@typescript-eslint/prefer-for-of': 'off', |
57 | | - '@typescript-eslint/restrict-template-expressions': 'off', |
58 | | - '@typescript-eslint/array-type': ['error', { default: 'generic' }], |
59 | | - "no-console":'warn' |
| 21 | + "@typescript-eslint/restrict-plus-operands": "off", |
| 22 | + "@typescript-eslint/no-unused-vars": "warn", |
| 23 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 24 | + "import/no-default-export": "off", |
| 25 | + "no-bitwise": "off", |
| 26 | + "@typescript-eslint/prefer-optional-chain": "off", |
| 27 | + "@typescript-eslint/consistent-indexed-object-style": "off", |
| 28 | + "import/no-extraneous-dependencies": "off", |
| 29 | + "@typescript-eslint/no-unsafe-call": "off", |
| 30 | + "@typescript-eslint/no-unsafe-return": "off", |
| 31 | + "@typescript-eslint/no-unsafe-argument": "off", |
| 32 | + "@typescript-eslint/no-explicit-any": "off", |
| 33 | + "@typescript-eslint/no-unsafe-assignment": "off", |
| 34 | + "@typescript-eslint/no-unsafe-member-access": "off", |
| 35 | + "@typescript-eslint/no-shadow": "off", |
| 36 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 37 | + "@typescript-eslint/no-loop-func": "off", |
| 38 | + "eslint-comments/disable-enable-pair": "off", |
| 39 | + "import/no-cycle": "off", |
| 40 | + "no-nested-ternary": "off", |
| 41 | + "no-param-reassign": "off", |
| 42 | + "tsdoc/syntax": "off", |
| 43 | + "eslint-comments/require-description": "off", |
| 44 | + "import/no-relative-packages": "off", |
| 45 | + "@typescript-eslint/no-unnecessary-condition": "off", |
| 46 | + "@typescript-eslint/no-confusing-void-expression": "off", |
| 47 | + "@typescript-eslint/require-await": "off", |
| 48 | + "import/no-named-as-default": "off", |
| 49 | + "no-implicit-coercion": "off", |
| 50 | + "@typescript-eslint/no-redundant-type-constituents": "off", |
| 51 | + "object-shorthand": "off", |
| 52 | + "@typescript-eslint/no-non-null-asserted-optional-chain": "off", |
| 53 | + "no-useless-return": "off", |
| 54 | + "func-names": "off", |
| 55 | + "@typescript-eslint/prefer-for-of": "off", |
| 56 | + "@typescript-eslint/restrict-template-expressions": "off", |
| 57 | + "@typescript-eslint/array-type": ["error", { default: "generic" }], |
| 58 | + "no-console": "warn", |
| 59 | + eqeqeq: ["error", "null"], |
60 | 60 | }, |
61 | 61 | settings: { |
62 | | - 'import/resolver': { |
| 62 | + "import/resolver": { |
63 | 63 | typescript: { |
64 | 64 | project: [ |
65 | | - resolve(__dirname, 'tsconfig.json'), // Root tsconfig |
66 | | - resolve(__dirname, 'packages/**/tsconfig.json'), // Scan package tsconfig |
| 65 | + resolve(__dirname, "tsconfig.json"), // Root tsconfig |
| 66 | + resolve(__dirname, "packages/**/tsconfig.json"), // Scan package tsconfig |
67 | 67 | ], |
68 | 68 | }, |
69 | 69 | }, |
70 | 70 | }, |
71 | 71 | overrides: [ |
72 | 72 | { |
73 | | - files: ['*.json'], |
74 | | - parser: 'jsonc-eslint-parser', |
75 | | - plugins: ['jsonc'], |
| 73 | + files: ["*.json"], |
| 74 | + parser: "jsonc-eslint-parser", |
| 75 | + plugins: ["jsonc"], |
76 | 76 | rules: { |
77 | | - 'jsonc/no-comments': 'off', |
| 77 | + "jsonc/no-comments": "off", |
78 | 78 | }, |
79 | 79 | }, |
80 | 80 | { |
81 | | - files: ['*.tsx', '*.ts', '*.js'], |
82 | | - plugins: ['tailwindcss'], |
| 81 | + files: ["*.tsx", "*.ts", "*.js"], |
| 82 | + plugins: ["tailwindcss"], |
83 | 83 | }, |
84 | 84 | { |
85 | | - files: ['*.mts'], |
86 | | - parser: '@typescript-eslint/parser', |
87 | | - } |
| 85 | + files: ["*.mts"], |
| 86 | + parser: "@typescript-eslint/parser", |
| 87 | + }, |
88 | 88 | ], |
89 | 89 | }; |
0 commit comments