diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.cjs similarity index 100% rename from frontend/.eslintrc.js rename to frontend/.eslintrc.cjs diff --git a/frontend/.prettierrc.js b/frontend/.prettierrc.cjs similarity index 100% rename from frontend/.prettierrc.js rename to frontend/.prettierrc.cjs diff --git a/frontend/.stylelintrc.js b/frontend/.stylelintrc.cjs similarity index 100% rename from frontend/.stylelintrc.js rename to frontend/.stylelintrc.cjs diff --git a/frontend/babel.config.js b/frontend/babel.config.cjs similarity index 100% rename from frontend/babel.config.js rename to frontend/babel.config.cjs diff --git a/frontend/commitlint.config.js b/frontend/commitlint.config.cjs similarity index 100% rename from frontend/commitlint.config.js rename to frontend/commitlint.config.cjs diff --git a/frontend/package.json b/frontend/package.json index 2254b6a53d..51c04b9cf3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -5,6 +5,7 @@ "private": true, "author": "MeterSphere Team", "license": "MIT", + "type": "module", "scripts": { "dev": "vite --config ./config/vite.config.dev.ts", "build": "vue-tsc --noEmit && vite build --config ./config/vite.config.prod.ts", diff --git a/frontend/postcss.config.js b/frontend/postcss.config.cjs similarity index 100% rename from frontend/postcss.config.js rename to frontend/postcss.config.cjs diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.mjs similarity index 100% rename from frontend/tailwind.config.js rename to frontend/tailwind.config.mjs