Skip to content

Commit

Permalink
feat(eslint): add eslint rule and fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xixiIBN5100 committed Jan 5, 2025
1 parent dc0760e commit 02ebc70
Show file tree
Hide file tree
Showing 69 changed files with 3,488 additions and 2,012 deletions.
19 changes: 0 additions & 19 deletions .eslintrc.cjs

This file was deleted.

22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import zjutjh from "@zjutjh/eslint-config";

export default [
...await zjutjh({
overrides: {
vue: {
"vue/multi-word-component-names": "off",
"vue/require-v-for-key": "off"
}
}
}),
{
name: "local/ignores",
ignores: [
"dist",
"tailwind.config.cjs",
"components.d.ts",
"auto-imports.d.ts",
"uploadToQiniu.js"
]
}
];
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,23 @@
"test:unit": "vitest",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
"lint:fix": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"lint": "eslint",
"lint:fix": "eslint --fix",
"format": "prettier --write src/"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@stylistic/eslint-plugin": "^2.9.0",
"@vue/eslint-config-typescript": "^14.0.0",
"axios": "^1.7.3",
"crypto-js": "^4.2.0",
"daisyui": "^4.12.10",
"element-plus": "^2.7.8",
"eslint": "^9.12.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-vue": "^9.28.0",
"globals": "^15.14.0",
"naive-ui": "^2.39.0",
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.1",
Expand All @@ -41,9 +48,10 @@
"@types/node": "^20.12.8",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/eslint-config-typescript": "^14.0.0",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.5.1",
"@zjutjh/eslint-config": "^0.2.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^9.23.0",
Expand Down
Loading

0 comments on commit 02ebc70

Please sign in to comment.