feat(框架): 配置代码校验规则 eslint
Showing
.eslintignore
0 → 100644
.eslintrc.cjs
0 → 100644
.prettierignore
0 → 100644
.prettierrc.cjs
0 → 100644
... | @@ -9,7 +9,9 @@ | ... | @@ -9,7 +9,9 @@ |
"dev": "vite", | "dev": "vite", | ||
"build:prod": "vite build", | "build:prod": "vite build", | ||
"build:stage": "vite build --mode staging", | "build:stage": "vite build --mode staging", | ||
"preview": "vite preview" | "preview": "vite preview", | ||
"lint": "eslint src", | |||
"fix": "eslint src --fix" | |||
}, | }, | ||
"repository": { | "repository": { | ||
"type": "git", | "type": "git", | ||
... | @@ -37,7 +39,14 @@ | ... | @@ -37,7 +39,14 @@ |
"vuedraggable": "4.1.0" | "vuedraggable": "4.1.0" | ||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"@eslint/js": "^9.21.0", | |||
"@vitejs/plugin-vue": "5.0.5", | "@vitejs/plugin-vue": "5.0.5", | ||
"eslint": "^8.57.0", | |||
"eslint-config-prettier": "^10.0.2", | |||
"eslint-plugin-prettier": "^5.2.3", | |||
"eslint-plugin-vue": "^9.32.0", | |||
"globals": "^16.0.0", | |||
"prettier": "^3.5.2", | |||
"sass": "1.77.5", | "sass": "1.77.5", | ||
"unplugin-auto-import": "0.17.6", | "unplugin-auto-import": "0.17.6", | ||
"unplugin-vue-setup-extend-plus": "1.0.1", | "unplugin-vue-setup-extend-plus": "1.0.1", | ||
... | ... |
Please register or sign in to comment