Skip to content

Commit c5fe174

Browse files
authored
💫 chore: upgrade eslint v9.22.0 (#368)
1 parent 368eb05 commit c5fe174

File tree

4 files changed

+1420
-1786
lines changed

4 files changed

+1420
-1786
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![thanks](https://badgen.net/badge/thanks/♥/pink)](https://github.com/pdsuwwz)
66
[![License](https://img.shields.io/github/license/pdsuwwz/vue-boilerplate-i18n?color=blue)](https://github.com/pdsuwwz/vue-boilerplate-i18n/blob/main/LICENSE)
77

8-
🌏 Starter using Vite 6 + Vue 3.x + Pinia 3.x + TypeScript + i18n + UnoCSS + Unplugin + Element-Plus 2.x to fast build a prototyping
8+
🌏 Starter using Vite 6 + Vue 3.x + Pinia 3.x + TypeScript + i18n + UnoCSS + Unplugin + Element-Plus 2.x + ESLint v9 to fast build a prototyping
99

1010
一个适用国际化多语言(i18n)扩展、帮助你快速开发 B 端 🚀🚀🚀 Vue3 + Vite6 + TS + Pinia 中小型后台管理系统的原型模板项目框架,集成 vue-i18n-next 💪
1111

@@ -44,7 +44,7 @@ __[💻 Live Demo 在线体验](https://pdsuwwz.github.io/vue-boilerplate-i18n/#
4444
* 原子化 CSS: __UnoCSS__
4545
* 单元测试框架: __Vitest__
4646
* 代码规范化检测: __Husky + lint-staged__
47-
* 内置 __ESlint____Stylelint__, 可在此基础上扩充你想要的 Lint 配置规范
47+
* 内置 __ESlint(v9)____Stylelint__, 可在此基础上扩充你想要的 Lint 配置规范
4848
* 内置封装了一个**可能比较好用的** Axios , 需要时配合 Pinia Actions 一起食用
4949
* 封装了 \<IconFont \/> 组件, 可直接使用 IconFont 图标
5050
* 内置全局 **$ModalDialog** 插件, 支持使用 service 式地动态调用此插件来显示任意组件

eslint.config.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// export default antfu()
33

44
import globals from 'globals'
5-
import { defineFlatConfig } from 'eslint-define-config'
5+
import { defineConfig } from 'eslint/config'
66

77
import * as parserTypeScript from '@typescript-eslint/parser'
88
import pluginTypeScript from '@typescript-eslint/eslint-plugin'
@@ -25,7 +25,7 @@ function renameRules(rules, map) {
2525
)
2626
}
2727

28-
export default defineFlatConfig([
28+
export default defineConfig([
2929
{
3030
ignores: [
3131
'public',
@@ -411,10 +411,10 @@ export default defineFlatConfig([
411411
},
412412
processor: pluginVue.processors['.vue'],
413413
rules: {
414-
...pluginVue.configs.base.rules,
415-
...pluginVue.configs['vue3-essential'].rules,
416-
...pluginVue.configs['vue3-strongly-recommended'].rules,
417-
...pluginVue.configs['vue3-recommended'].rules,
414+
...pluginVue.configs['flat/base'].rules,
415+
...pluginVue.configs['flat/essential'].rules,
416+
...pluginVue.configs['flat/strongly-recommended'].rules,
417+
...pluginVue.configs['flat/recommended'].rules,
418418
'vue/no-v-html': 'off',
419419
'vue/multi-word-component-names': 0,
420420
'vue/singleline-html-element-content-newline': 'off',
@@ -425,7 +425,6 @@ export default defineFlatConfig([
425425
'vue/v-on-event-hyphenation': ['warn', 'always', {
426426
autofix: true
427427
}],
428-
'vue/script-setup-uses-vars': 'error',
429428
'vue/html-self-closing': ['error', {
430429
html: {
431430
void: 'never',

package.json

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -50,67 +50,66 @@
5050
},
5151
"dependencies": {
5252
"@element-plus/icons-vue": "2.3.1",
53-
"@vueuse/core": "^12.6.1",
54-
"axios": "1.7.9",
53+
"@vueuse/core": "^13.0.0",
54+
"axios": "1.8.2",
5555
"echarts": "^5.6.0",
56-
"element-plus": "2.9.4",
56+
"element-plus": "2.9.6",
5757
"js-cookie": "^3.0.5",
5858
"nprogress": "^0.2.0",
5959
"pinia": "^3.0.1",
60-
"uuid": "^11.0.5",
60+
"uuid": "^11.1.0",
6161
"vue": "^3.5.13",
62-
"vue-i18n": "^11.1.1",
62+
"vue-i18n": "^11.1.2",
6363
"vue-router": "^4.5.0"
6464
},
6565
"devDependencies": {
66-
"@babel/core": "^7.26.8",
67-
"@babel/preset-env": "^7.26.8",
68-
"@eslint/js": "^9.20.0",
69-
"@iconify/json": "^2.2.306",
66+
"@babel/core": "^7.26.9",
67+
"@babel/preset-env": "^7.26.9",
68+
"@eslint/js": "^9.22.0",
69+
"@iconify/json": "^2.2.315",
7070
"@iconify/vue": "^4.3.0",
71-
"@stylistic/eslint-plugin": "^3.1.0",
71+
"@stylistic/eslint-plugin": "^4.2.0",
7272
"@stylistic/stylelint-plugin": "^3.1.2",
7373
"@types/js-cookie": "^3.0.6",
7474
"@types/lodash-es": "^4.17.12",
75-
"@types/node": "^22.13.4",
75+
"@types/node": "^22.13.10",
7676
"@types/nprogress": "^0.2.3",
77-
"@typescript-eslint/eslint-plugin": "^8.24.0",
78-
"@typescript-eslint/parser": "^8.24.0",
77+
"@typescript-eslint/eslint-plugin": "^8.26.0",
78+
"@typescript-eslint/parser": "^8.26.0",
7979
"@vitejs/plugin-vue": "^5.2.1",
80-
"@vitest/coverage-v8": "^3.0.5",
80+
"@vitest/coverage-v8": "^3.0.8",
8181
"@vue/compiler-sfc": "^3.5.13",
8282
"@vue/test-utils": "2.4.6",
8383
"babel-plugin-transform-vite-meta-env": "^1.0.3",
8484
"cross-env": "^7.0.3",
85-
"eslint": "^9.20.1",
86-
"eslint-define-config": "^2.1.0",
85+
"eslint": "^9.22.0",
8786
"eslint-plugin-html": "8.1.2",
8887
"eslint-plugin-import": "^2.31.0",
89-
"eslint-plugin-vue": "^9.32.0",
90-
"globals": "^15.15.0",
88+
"eslint-plugin-vue": "^10.0.0",
89+
"globals": "^16.0.0",
9190
"husky": "^9.1.7",
9291
"identity-obj-proxy": "^3.0.0",
9392
"jsdom": "^26.0.0",
9493
"lint-staged": "^15.4.3",
9594
"lodash-es": "^4.17.21",
96-
"postcss": "^8.5.2",
95+
"postcss": "^8.5.3",
9796
"postcss-html": "^1.8.0",
9897
"postcss-scss": "^4.0.9",
99-
"rollup": "^4.34.6",
100-
"sass": "1.85.0",
101-
"stylelint": "^16.14.1",
98+
"rollup": "^4.35.0",
99+
"sass": "1.85.1",
100+
"stylelint": "^16.15.0",
102101
"stylelint-config-recommended-scss": "14.1.0",
103102
"stylelint-config-recommended-vue": "^1.6.0",
104103
"stylelint-config-standard": "^37.0.0",
105104
"stylelint-config-standard-scss": "14.0.0",
106105
"sucrase": "^3.35.0",
107-
"typescript": "^5.7.3",
108-
"unocss": "^65.4.3",
109-
"unplugin-auto-import": "^19.0.0",
110-
"unplugin-icons": "^22.0.0",
111-
"unplugin-vue-components": "^28.0.0",
112-
"vite": "^6.1.0",
113-
"vitest": "^3.0.5",
114-
"vue-eslint-parser": "^9.4.3"
106+
"typescript": "^5.8.2",
107+
"unocss": "66.1.0-beta.3",
108+
"unplugin-auto-import": "^19.1.1",
109+
"unplugin-icons": "^22.1.0",
110+
"unplugin-vue-components": "^28.4.1",
111+
"vite": "^6.2.1",
112+
"vitest": "^3.0.8",
113+
"vue-eslint-parser": "^10.1.1"
115114
}
116115
}

0 commit comments

Comments
 (0)