Skip to content

Commit d34314e

Browse files
fix config & build flow
1 parent 6bbe03b commit d34314e

40 files changed

+1394
-1035
lines changed

.eslintrc.js

+2-47
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,6 @@ module.exports = {
33
env: {
44
node: true,
55
},
6-
parser: "@typescript-eslint/parser",
7-
ignorePatterns: ["node_modules/*", "**/*.js", "dist/*", "dev/*", "coverage/*", "!.prettierrc"],
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-
},
6+
ignorePatterns: ["node_modules/*", "coverage/*", "!.prettierrc"],
7+
extends: [require.resolve("project-tool/baseLint")],
538
};

package.json

+5-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-ssr-setup",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"author": "MrWangJustToDo",
55
"license": "MIT",
66
"scripts": {
@@ -28,37 +28,25 @@
2828
"@chakra-ui/styled-system": "^2.8.0",
2929
"@emotion/react": "^11.10.6",
3030
"@emotion/styled": "^11.10.6",
31-
"@rollup/plugin-commonjs": "^24.0.1",
32-
"@rollup/plugin-node-resolve": "^15.0.2",
33-
"@rollup/plugin-replace": "^5.0.2",
34-
"@swc/core": "^1.3.46",
31+
"@swc/core": "^1.3.53",
3532
"@swc/helpers": "^0.5.0",
3633
"@types/jest": "^29.2.3",
37-
"@types/lodash": "^4.14.192",
34+
"@types/lodash": "^4.14.194",
3835
"@types/lodash-es": "^4.17.7",
39-
"@types/node": "^18.15.11",
40-
"@typescript-eslint/eslint-plugin": "^5.55.0",
41-
"@typescript-eslint/parser": "^5.55.0",
36+
"@types/node": "^18.15.13",
4237
"axios": "^0.27.2",
4338
"browserslist": "^4.21.5",
4439
"cross-env": "^7.0.3",
4540
"eslint": "^8.37.0",
46-
"eslint-config-prettier": "^8.8.0",
47-
"eslint-import-resolver-typescript": "^3.5.5",
48-
"eslint-plugin-import": "^2.27.5",
49-
"eslint-plugin-prettier": "^4.2.1",
50-
"eslint-plugin-react": "^7.32.2",
51-
"eslint-plugin-react-hooks": "^4.6.0",
5241
"framer-motion": "^6.5.1",
5342
"jest": "^29.2.2",
5443
"jest-environment-jsdom": "^29.2.2",
5544
"lodash": "^4.17.21",
5645
"lodash-es": "^4.17.21",
5746
"prettier": "^2.8.7",
47+
"project-tool": "git+ssh://git@github.com:MrWangJustToDo/project-tool.git",
5848
"react": "18.2.0",
5949
"react-dom": "18.2.0",
60-
"rollup": "^3.20.2",
61-
"rollup-plugin-typescript2": "^0.34.1",
6250
"ts-jest": "^29.0.3",
6351
"ts-node": "^10.9.1",
6452
"tsconfig-paths": "^4.2.0",

packages/axios/.eslintrc.js

-3
This file was deleted.

packages/chakra/.eslintrc.js

-13
This file was deleted.

0 commit comments

Comments
 (0)