Skip to content

Commit 2e72a0d

Browse files
refactor project
1 parent e466f94 commit 2e72a0d

File tree

213 files changed

+9075
-4654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+9075
-4654
lines changed

.eslintrc.js

+3-59
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,8 @@ module.exports = {
22
root: true,
33
env: {
44
node: true,
5+
jest: true,
56
},
6-
parser: "@typescript-eslint/parser",
7-
ignorePatterns: ["node_modules/*", "**/*.js", "dist/*", "dev/*", "coverage/*", "!.prettierrc", "vite.config.ts", "vite.config.node.ts"],
8-
plugins: ["@typescript-eslint", "prettier", "import"],
9-
extends: ["eslint:recommended", "plugin:import/recommended", "plugin:import/typescript", "plugin:@typescript-eslint/recommended", "prettier"],
10-
rules: {
11-
// General
12-
// "no-console": "warn",
13-
14-
"max-lines": ["error", { max: 400, skipBlankLines: true }],
15-
16-
"import/first": "error",
17-
18-
"import/newline-after-import": "error",
19-
20-
"import/no-duplicates": "error",
21-
22-
// Why would you want unused vars?
23-
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
24-
25-
// I suggest this setting for requiring return types on functions only where useful
26-
"@typescript-eslint/explicit-function-return-type": [
27-
"off",
28-
{
29-
allowExpressions: true,
30-
allowConciseArrowFunctionExpressionsStartingWithVoid: true,
31-
},
32-
],
33-
34-
"@typescript-eslint/consistent-type-imports": "error",
35-
36-
// import
37-
"import/order": [
38-
"error",
39-
{
40-
groups: [["builtin", "external"], "internal", "parent", "sibling", "index", "type"],
41-
"newlines-between": "always",
42-
alphabetize: { order: "asc", caseInsensitive: true },
43-
},
44-
],
45-
"import/newline-after-import": ["error", { count: 1 }],
46-
"import/no-useless-path-segments": [
47-
"error",
48-
{
49-
noUselessIndex: true,
50-
},
51-
],
52-
},
53-
settings: {
54-
"import/parsers": {
55-
"@typescript-eslint/parser": [".ts", ".tsx"],
56-
},
57-
"import/resolver": {
58-
typescript: {
59-
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
60-
61-
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
62-
},
63-
},
64-
},
7+
ignorePatterns: ["node_modules/*", "coverage/*", "!.prettierrc"],
8+
extends: [require.resolve("project-tool/baseLint")],
659
};

0 commit comments

Comments
 (0)