Skip to content

Commit 637a0e0

Browse files
committed
Fix switch-case
1 parent ddfb7ee commit 637a0e0

File tree

3 files changed

+222
-213
lines changed

3 files changed

+222
-213
lines changed

.eslintrc.js

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,89 @@
1-
const { resolve } = require('node:path');
1+
const { resolve } = require("node:path");
22

33
module.exports = {
44
root: true,
55
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",
1010
],
11-
ignorePatterns: ['**/dist/**', '**/node_modules/**', '**/test/**'],
11+
ignorePatterns: ["**/dist/**", "**/node_modules/**", "**/test/**"],
1212
parserOptions: {
1313
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
1616
],
1717
ecmaVersion: 2020,
18-
sourceType: 'module',
18+
sourceType: "module",
1919
},
2020
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"],
6060
},
6161
settings: {
62-
'import/resolver': {
62+
"import/resolver": {
6363
typescript: {
6464
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
6767
],
6868
},
6969
},
7070
},
7171
overrides: [
7272
{
73-
files: ['*.json'],
74-
parser: 'jsonc-eslint-parser',
75-
plugins: ['jsonc'],
73+
files: ["*.json"],
74+
parser: "jsonc-eslint-parser",
75+
plugins: ["jsonc"],
7676
rules: {
77-
'jsonc/no-comments': 'off',
77+
"jsonc/no-comments": "off",
7878
},
7979
},
8080
{
81-
files: ['*.tsx', '*.ts', '*.js'],
82-
plugins: ['tailwindcss'],
81+
files: ["*.tsx", "*.ts", "*.js"],
82+
plugins: ["tailwindcss"],
8383
},
8484
{
85-
files: ['*.mts'],
86-
parser: '@typescript-eslint/parser',
87-
}
85+
files: ["*.mts"],
86+
parser: "@typescript-eslint/parser",
87+
},
8888
],
8989
};

0 commit comments

Comments
 (0)