Skip to content

Commit

Permalink
chore: 优化eslint及vite配置
Browse files Browse the repository at this point in the history
  • Loading branch information
wei-zone committed Oct 13, 2023
1 parent d000aee commit 92c2d67
Show file tree
Hide file tree
Showing 6 changed files with 1,881 additions and 87 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ module.exports = {
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unused-vars': 'off', // 不能有声明后未被使用的变量或参数
'@typescript-eslint/no-unused-vars': 'off',
// 组件名
'vue/multi-word-component-names': [
'error',
'warn',
{
ignores: ['index'] // 需要忽略的组件名
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"unplugin-vue-components": "^0.25.2",
"vite": "^4.3.9",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-imagemin": "^0.6.1",
"vite-plugin-meta-env": "^1.0.2",
"vitest": "^0.34.6",
"vue-tsc": "^1.6.5"
Expand Down
Loading

0 comments on commit 92c2d67

Please sign in to comment.