From ee1bf5517a2a41bb446c34558ac2289113e4740b Mon Sep 17 00:00:00 2001 From: tianyingchun Date: Thu, 24 Oct 2024 17:43:02 +0800 Subject: [PATCH] chore: fix eslint `import type` --- package.json | 2 +- packages/antd/package.json | 2 +- packages/antd/tsconfig.build.json | 1 + packages/demo-antd/package.json | 2 +- packages/pro-layout/package.json | 2 +- packages/pro-layout/tsconfig.build.json | 1 + packages/utils/package.json | 2 +- packages/utils/tsconfig.build.json | 1 + yarn.lock | 18 +++++++++--------- 9 files changed, 17 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 0d33287..32ddcfc 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "@changesets/cli": "2.27.9", "@commitlint/cli": "19.5.0", "@commitlint/config-conventional": "19.5.0", - "@hyperse/eslint-config-hyperse": "^1.2.4", + "@hyperse/eslint-config-hyperse": "^1.2.6", "commitizen": "4.3.1", "cz-conventional-changelog": "3.3.0", "eslint": "9.13.0", diff --git a/packages/antd/package.json b/packages/antd/package.json index 1bd37aa..e1f0bb1 100644 --- a/packages/antd/package.json +++ b/packages/antd/package.json @@ -458,7 +458,7 @@ "@dimjs/model-react": "^2.0.1", "@dimjs/utils": "^2.0.2", "@flatjs/cli": "2.1.9", - "@hyperse/eslint-config-hyperse": "^1.2.4", + "@hyperse/eslint-config-hyperse": "^1.2.6", "@types/node": "22.7.9", "@types/react": "^18.3.12", "@wove/react": "^2.0.2", diff --git a/packages/antd/tsconfig.build.json b/packages/antd/tsconfig.build.json index 89095dc..314a420 100644 --- a/packages/antd/tsconfig.build.json +++ b/packages/antd/tsconfig.build.json @@ -3,6 +3,7 @@ "compilerOptions": { "rootDir": "./src", "incremental": false, + "verbatimModuleSyntax": false, "paths": {}, "types": [] }, diff --git a/packages/demo-antd/package.json b/packages/demo-antd/package.json index eeedaa0..397b044 100644 --- a/packages/demo-antd/package.json +++ b/packages/demo-antd/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@flatjs/cli": "2.1.9", - "@hyperse/eslint-config-hyperse": "^1.2.4", + "@hyperse/eslint-config-hyperse": "^1.2.6", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "eslint": "^9.13.0", diff --git a/packages/pro-layout/package.json b/packages/pro-layout/package.json index f7d83a5..c8be138 100644 --- a/packages/pro-layout/package.json +++ b/packages/pro-layout/package.json @@ -38,7 +38,7 @@ "@dimjs/model-react": "^2.0.1", "@dimjs/utils": "^2.0.2", "@flatjs/cli": "2.1.9", - "@hyperse/eslint-config-hyperse": "^1.2.4", + "@hyperse/eslint-config-hyperse": "^1.2.6", "@types/node": "22.7.9", "@types/react": "^18.3.12", "@wove/react": "^2.0.2", diff --git a/packages/pro-layout/tsconfig.build.json b/packages/pro-layout/tsconfig.build.json index 89095dc..314a420 100644 --- a/packages/pro-layout/tsconfig.build.json +++ b/packages/pro-layout/tsconfig.build.json @@ -3,6 +3,7 @@ "compilerOptions": { "rootDir": "./src", "incremental": false, + "verbatimModuleSyntax": false, "paths": {}, "types": [] }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 8fe93a1..98d1c5c 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -52,7 +52,7 @@ "@dimjs/lang": "^2.0.0", "@dimjs/utils": "^2.0.2", "@flatjs/cli": "2.1.9", - "@hyperse/eslint-config-hyperse": "^1.2.4", + "@hyperse/eslint-config-hyperse": "^1.2.6", "@types/node": "22.7.9", "@types/react": "^18.3.12", "cropperjs": "^1.6.2", diff --git a/packages/utils/tsconfig.build.json b/packages/utils/tsconfig.build.json index afdaa47..58d0106 100644 --- a/packages/utils/tsconfig.build.json +++ b/packages/utils/tsconfig.build.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "rootDir": "./src", + "verbatimModuleSyntax": false, "incremental": false, "types": [] }, diff --git a/yarn.lock b/yarn.lock index 87d0eb0..6180d83 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3328,7 +3328,7 @@ __metadata: "@changesets/cli": "npm:2.27.9" "@commitlint/cli": "npm:19.5.0" "@commitlint/config-conventional": "npm:19.5.0" - "@hyperse/eslint-config-hyperse": "npm:^1.2.4" + "@hyperse/eslint-config-hyperse": "npm:^1.2.6" commitizen: "npm:4.3.1" cross-env: "npm:7.0.3" cz-conventional-changelog: "npm:3.3.0" @@ -3356,7 +3356,7 @@ __metadata: "@dnd-kit/sortable": "npm:^8.0.0" "@dnd-kit/utilities": "npm:^3.2.2" "@flatjs/cli": "npm:2.1.9" - "@hyperse/eslint-config-hyperse": "npm:^1.2.4" + "@hyperse/eslint-config-hyperse": "npm:^1.2.6" "@hyperse/utils": "workspace:^" "@tinymce/tinymce-react": "npm:5.1.1" "@types/node": "npm:22.7.9" @@ -3419,7 +3419,7 @@ __metadata: "@dimjs/utils": "npm:^2.0.2" "@flatjs/cli": "npm:2.1.9" "@hyperse/antd": "workspace:^" - "@hyperse/eslint-config-hyperse": "npm:^1.2.4" + "@hyperse/eslint-config-hyperse": "npm:^1.2.6" "@hyperse/utils": "workspace:^" "@types/react": "npm:^18.3.12" "@types/react-dom": "npm:^18.3.1" @@ -3434,9 +3434,9 @@ __metadata: languageName: unknown linkType: soft -"@hyperse/eslint-config-hyperse@npm:^1.2.4": - version: 1.2.4 - resolution: "@hyperse/eslint-config-hyperse@npm:1.2.4" +"@hyperse/eslint-config-hyperse@npm:^1.2.6": + version: 1.2.6 + resolution: "@hyperse/eslint-config-hyperse@npm:1.2.6" dependencies: "@eslint/js": "npm:^9.13.0" "@next/eslint-plugin-next": "npm:rc" @@ -3462,7 +3462,7 @@ __metadata: peerDependencies: eslint: ">=9.3.0" typescript: ^5.4.3 - checksum: 10/77db89f3c16fb01f18ec1606f678e17a14709eb6f4233222438b3d7c6a57dd85623287ec71bee861ef86b90f17d717c29a892823cbae997a19e111c75ca010b0 + checksum: 10/4d0208046a60492ce951dbf353634222e64048f255d9965f86ed9c5e39fe4e25a196bb707c6b7991885da52816c1e4a39814f412963998f9f652406eeec7c5af languageName: node linkType: hard @@ -3505,7 +3505,7 @@ __metadata: "@dnd-kit/utilities": "npm:^3.2.2" "@flatjs/cli": "npm:2.1.9" "@hyperse/antd": "workspace:^" - "@hyperse/eslint-config-hyperse": "npm:^1.2.4" + "@hyperse/eslint-config-hyperse": "npm:^1.2.6" "@hyperse/utils": "workspace:^" "@tinymce/tinymce-react": "npm:5.1.1" "@types/node": "npm:22.7.9" @@ -3578,7 +3578,7 @@ __metadata: "@dnd-kit/sortable": "npm:^8.0.0" "@dnd-kit/utilities": "npm:^3.2.2" "@flatjs/cli": "npm:2.1.9" - "@hyperse/eslint-config-hyperse": "npm:^1.2.4" + "@hyperse/eslint-config-hyperse": "npm:^1.2.6" "@tinymce/tinymce-react": "npm:5.1.1" "@types/node": "npm:22.7.9" "@types/react": "npm:^18.3.12"