Skip to content

Commit 967beb7

Browse files
committed
fix: 修改文件结构
1 parent d57661c commit 967beb7

Some content is hidden

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

58 files changed

+1927
-7888
lines changed

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = {
99
extends: [
1010
'airbnb',
1111
'airbnb/hooks',
12+
'plugin:@typescript-eslint/recommended-type-checked',
1213
'plugin:@typescript-eslint/strict-type-checked',
1314
'plugin:import/recommended',
1415
'plugin:import/typescript',
@@ -49,6 +50,7 @@ module.exports = {
4950
],
5051
rules: {
5152
'linebreak-style': 0,
53+
'multiline-comment-style': ['error', 'starred-block'],
5254
'import/no-cycle': 0,
5355
'import/extensions': [
5456
'error',
@@ -72,6 +74,11 @@ module.exports = {
7274
'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }],
7375
'react/function-component-definition': 0,
7476
'react/jsx-props-no-spreading': 0,
77+
'react-hooks/exhaustive-deps': 0,
78+
'no-unused-vars': 'off',
79+
'no-use-before-define': 'off',
80+
'@typescript-eslint/no-use-before-define': 'error',
81+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_|draft' }],
7582
'@typescript-eslint/triple-slash-reference': 0,
7683
'@typescript-eslint/no-shadow': 'error',
7784
'@typescript-eslint/no-var-requires': 0,

.vscode/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"editor.defaultFormatter": "esbenp.prettier-vscode",
33
"editor.codeActionsOnSave": {
4-
"source.fixAll": true,
5-
"source.fixAll.eslint": true,
6-
"source.fixAll.stylelint": true
4+
"source.fixAll": "explicit",
5+
"source.fixAll.eslint": "explicit",
6+
"source.fixAll.stylelint": "explicit"
77
},
88
"css.validate": false,
99
"less.validate": false,

package.json

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"scripts": {
2121
"prepare": "is-ci || husky install",
2222
"preinstall": "npx only-allow pnpm",
23-
"dev": "pnpm --filter docs run start",
24-
"storybook": "pnpm --filter docs run storybook",
23+
"dev": "pnpm --filter @rc-querybuilder/antd run dev",
2524
"build:core": "pnpm --filter @rc-querybuilder/core run build",
2625
"build:antd": "pnpm --filter @rc-querybuilder/antd run build",
2726
"lint": "pnpm run lint:component && pnpm run lint:style",
@@ -34,27 +33,14 @@
3433
"test": "jest"
3534
},
3635
"devDependencies": {
37-
"@babel/cli": "^7.23.0",
38-
"@babel/core": "^7.23.2",
39-
"@babel/preset-env": "^7.23.2",
40-
"@babel/preset-react": "^7.22.15",
41-
"@babel/runtime": "^7.23.2",
4236
"@changesets/cli": "^2.26.2",
4337
"@commitlint/cli": "^18.2.0",
4438
"@commitlint/config-conventional": "^18.1.0",
45-
"@rollup/plugin-alias": "^5.0.1",
46-
"@rollup/plugin-babel": "^6.0.4",
47-
"@rollup/plugin-commonjs": "^25.0.7",
48-
"@rollup/plugin-node-resolve": "^15.2.3",
49-
"@rollup/plugin-terser": "^0.4.4",
50-
"@rollup/plugin-url": "^8.0.2",
51-
"@svgr/rollup": "^8.1.0",
5239
"@types/node": "^20.8.9",
5340
"@types/react": "^17.0.69",
5441
"@types/react-dom": "^17.0.22",
5542
"@typescript-eslint/eslint-plugin": "^6.9.0",
5643
"@typescript-eslint/parser": "^6.9.0",
57-
"autoprefixer": "^10.4.16",
5844
"eslint": "^8.52.0",
5945
"eslint-config-airbnb": "^19.0.4",
6046
"eslint-config-prettier": "^9.0.0",
@@ -69,22 +55,12 @@
6955
"postcss": "^8.4.31",
7056
"postcss-less": "^6.0.0",
7157
"prettier": "^3.0.3",
72-
"rollup": "^4.1.5",
73-
"rollup-plugin-delete": "^2.0.0",
74-
"rollup-plugin-dts": "^6.1.0",
75-
"rollup-plugin-peer-deps-external": "^2.2.4",
76-
"rollup-plugin-postcss": "^4.0.2",
77-
"rollup-plugin-typescript2": "^0.36.0",
78-
"rollup-plugin-visualizer": "^5.9.2",
7958
"stylelint": "^15.11.0",
8059
"stylelint-config-standard": "^34.0.0",
8160
"stylelint-prettier": "^4.0.2",
8261
"tslib": "^2.6.2",
8362
"typescript": "^5.2.2"
8463
},
85-
"publishConfig": {
86-
"registry": "https://registry.npmjs.org/"
87-
},
8864
"lint-staged": {
8965
"*.{ts,tsx,js,jsx}": [
9066
"eslint --fix",

packages/docs/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/docs/.eslintrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/docs/.storybook/main.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/docs/.storybook/preview.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/docs/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/docs/package.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

packages/docs/src/App.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)