diff --git a/.prettierrc.json b/.prettierrc.json index c573b0d62a2..d5c6966acc2 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -16,5 +16,9 @@ } ], "endOfLine": "auto", - "plugins": ["prettier-plugin-sh", "prettier-plugin-pkg"] + "plugins": [ + "prettier-plugin-sh", + "prettier-plugin-pkg", + "prettier-plugin-organize-imports" + ] } diff --git a/package-lock.json b/package-lock.json index 1404cb3f7cf..d9c776c0986 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,6 +43,7 @@ "postcss": "^8.4.49", "postcss-cli": "^11.0.0", "prettier": "^3.3.3", + "prettier-plugin-organize-imports": "^4.1.0", "prettier-plugin-pkg": "0.18.1", "prettier-plugin-sh": "^0.14.0", "replace-in-file": "^8.2.0", @@ -4442,6 +4443,27 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/@builder.io/mitosis/node_modules/prettier-plugin-organize-imports": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-3.2.4.tgz", + "integrity": "sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@volar/vue-language-plugin-pug": "^1.0.4", + "@volar/vue-typescript": "^1.0.4", + "prettier": ">=2.0", + "typescript": ">=2.9" + }, + "peerDependenciesMeta": { + "@volar/vue-language-plugin-pug": { + "optional": true + }, + "@volar/vue-typescript": { + "optional": true + } + } + }, "node_modules/@builder.io/mitosis/node_modules/prettier-plugin-svelte": { "version": "2.10.1", "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.10.1.tgz", @@ -31394,21 +31416,18 @@ } }, "node_modules/prettier-plugin-organize-imports": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-3.2.4.tgz", - "integrity": "sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-4.1.0.tgz", + "integrity": "sha512-5aWRdCgv645xaa58X8lOxzZoiHAldAPChljr/MT0crXVOWTZ+Svl4hIWlz+niYSlO6ikE5UXkN1JrRvIP2ut0A==", "dev": true, + "license": "MIT", "peerDependencies": { - "@volar/vue-language-plugin-pug": "^1.0.4", - "@volar/vue-typescript": "^1.0.4", "prettier": ">=2.0", - "typescript": ">=2.9" + "typescript": ">=2.9", + "vue-tsc": "^2.1.0" }, "peerDependenciesMeta": { - "@volar/vue-language-plugin-pug": { - "optional": true - }, - "@volar/vue-typescript": { + "vue-tsc": { "optional": true } } @@ -40694,7 +40713,7 @@ }, "showcases/next-showcase": { "dependencies": { - "next": "*", + "next": "latest", "react": "18.3.1", "react-dom": "18.3.1" }, diff --git a/package.json b/package.json index 9fe3b409606..47432aa0fd0 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "postcss": "^8.4.49", "postcss-cli": "^11.0.0", "prettier": "^3.3.3", + "prettier-plugin-organize-imports": "^4.1.0", "prettier-plugin-pkg": "0.18.1", "prettier-plugin-sh": "^0.14.0", "replace-in-file": "^8.2.0",