Skip to content

Commit

Permalink
chore: 升级eslint9,相关兼容处理
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Apr 13, 2024
1 parent 0dc979e commit 0934c97
Show file tree
Hide file tree
Showing 14 changed files with 219 additions and 233 deletions.
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

9 changes: 8 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ import pluginTypeScript from "@typescript-eslint/eslint-plugin";
export default defineFlatConfig([
{
...js.configs.recommended,
ignores: ["src/assets/**", "src/**/iconfont/**"],
ignores: [
"**/.*",
"dist/*",
"*.d.ts",
"public/*",
"src/assets/**",
"src/**/iconfont/**"
],
languageOptions: {
globals: {
// index.d.ts
Expand Down
2 changes: 1 addition & 1 deletion locales/en.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buttons:
pureAccountSettings: Account Settings
pureAccountSettings: Account
pureLoginOut: LoginOut
pureLogin: Login
pureSystemSet: Open ProjectConfig
Expand Down
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"dayjs": "^1.11.10",
"echarts": "^5.5.0",
"el-table-infinite-scroll": "^3.0.3",
"element-plus": "^2.7.0",
"element-plus": "2.6.3",
"intro.js": "^7.2.0",
"js-cookie": "^3.0.5",
"jsbarcode": "^3.11.6",
Expand All @@ -84,7 +84,7 @@
"path": "^0.12.7",
"pinia": "^2.1.7",
"pinyin-pro": "^3.20.0",
"plus-pro-components": "^0.0.7",
"plus-pro-components": "^0.0.10",
"qrcode": "^1.5.3",
"qs": "^6.12.0",
"responsive-storage": "^2.2.0",
Expand All @@ -95,7 +95,7 @@
"v3-infinite-loading": "^1.3.1",
"version-rocket": "^1.7.1",
"vue": "^3.4.21",
"vue-i18n": "^9.11.1",
"vue-i18n": "^9.12.0",
"vue-json-pretty": "^2.4.0",
"vue-pdf-embed": "^2.0.3",
"vue-router": "^4.3.0",
Expand All @@ -115,7 +115,7 @@
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@commitlint/types": "^19.0.3",
"@eslint/js": "^8.57.0",
"@eslint/js": "^9.0.0",
"@faker-js/faker": "^8.4.1",
"@iconify-icons/ep": "^1.2.12",
"@iconify-icons/ri": "^1.2.10",
Expand All @@ -140,7 +140,7 @@
"cloc": "^2.11.0",
"cssnano": "^6.1.2",
"dagre": "^0.8.5",
"eslint": "^8.57.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-prettier": "^5.1.3",
Expand Down Expand Up @@ -186,6 +186,11 @@
"w3c-hr-time": "*",
"stable": "*",
"abab": "*"
},
"peerDependencyRules": {
"allowedVersions": {
"eslint": "9"
}
}
}
}
Loading

0 comments on commit 0934c97

Please sign in to comment.