Skip to content

Commit

Permalink
💫 chore: upgrade eslint v9.22.0 (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdsuwwz authored Mar 10, 2025
1 parent 368eb05 commit c5fe174
Show file tree
Hide file tree
Showing 4 changed files with 1,420 additions and 1,786 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![thanks](https://badgen.net/badge/thanks/♥/pink)](https://github.com/pdsuwwz)
[![License](https://img.shields.io/github/license/pdsuwwz/vue-boilerplate-i18n?color=blue)](https://github.com/pdsuwwz/vue-boilerplate-i18n/blob/main/LICENSE)

🌏 Starter using Vite 6 + Vue 3.x + Pinia 3.x + TypeScript + i18n + UnoCSS + Unplugin + Element-Plus 2.x to fast build a prototyping
🌏 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

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

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

import globals from 'globals'
import { defineFlatConfig } from 'eslint-define-config'
import { defineConfig } from 'eslint/config'

import * as parserTypeScript from '@typescript-eslint/parser'
import pluginTypeScript from '@typescript-eslint/eslint-plugin'
Expand All @@ -25,7 +25,7 @@ function renameRules(rules, map) {
)
}

export default defineFlatConfig([
export default defineConfig([
{
ignores: [
'public',
Expand Down Expand Up @@ -411,10 +411,10 @@ export default defineFlatConfig([
},
processor: pluginVue.processors['.vue'],
rules: {
...pluginVue.configs.base.rules,
...pluginVue.configs['vue3-essential'].rules,
...pluginVue.configs['vue3-strongly-recommended'].rules,
...pluginVue.configs['vue3-recommended'].rules,
...pluginVue.configs['flat/base'].rules,
...pluginVue.configs['flat/essential'].rules,
...pluginVue.configs['flat/strongly-recommended'].rules,
...pluginVue.configs['flat/recommended'].rules,
'vue/no-v-html': 'off',
'vue/multi-word-component-names': 0,
'vue/singleline-html-element-content-newline': 'off',
Expand All @@ -425,7 +425,6 @@ export default defineFlatConfig([
'vue/v-on-event-hyphenation': ['warn', 'always', {
autofix: true
}],
'vue/script-setup-uses-vars': 'error',
'vue/html-self-closing': ['error', {
html: {
void: 'never',
Expand Down
59 changes: 29 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,67 +50,66 @@
},
"dependencies": {
"@element-plus/icons-vue": "2.3.1",
"@vueuse/core": "^12.6.1",
"axios": "1.7.9",
"@vueuse/core": "^13.0.0",
"axios": "1.8.2",
"echarts": "^5.6.0",
"element-plus": "2.9.4",
"element-plus": "2.9.6",
"js-cookie": "^3.0.5",
"nprogress": "^0.2.0",
"pinia": "^3.0.1",
"uuid": "^11.0.5",
"uuid": "^11.1.0",
"vue": "^3.5.13",
"vue-i18n": "^11.1.1",
"vue-i18n": "^11.1.2",
"vue-router": "^4.5.0"
},
"devDependencies": {
"@babel/core": "^7.26.8",
"@babel/preset-env": "^7.26.8",
"@eslint/js": "^9.20.0",
"@iconify/json": "^2.2.306",
"@babel/core": "^7.26.9",
"@babel/preset-env": "^7.26.9",
"@eslint/js": "^9.22.0",
"@iconify/json": "^2.2.315",
"@iconify/vue": "^4.3.0",
"@stylistic/eslint-plugin": "^3.1.0",
"@stylistic/eslint-plugin": "^4.2.0",
"@stylistic/stylelint-plugin": "^3.1.2",
"@types/js-cookie": "^3.0.6",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.13.4",
"@types/node": "^22.13.10",
"@types/nprogress": "^0.2.3",
"@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "^8.24.0",
"@typescript-eslint/eslint-plugin": "^8.26.0",
"@typescript-eslint/parser": "^8.26.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vitest/coverage-v8": "^3.0.5",
"@vitest/coverage-v8": "^3.0.8",
"@vue/compiler-sfc": "^3.5.13",
"@vue/test-utils": "2.4.6",
"babel-plugin-transform-vite-meta-env": "^1.0.3",
"cross-env": "^7.0.3",
"eslint": "^9.20.1",
"eslint-define-config": "^2.1.0",
"eslint": "^9.22.0",
"eslint-plugin-html": "8.1.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-vue": "^9.32.0",
"globals": "^15.15.0",
"eslint-plugin-vue": "^10.0.0",
"globals": "^16.0.0",
"husky": "^9.1.7",
"identity-obj-proxy": "^3.0.0",
"jsdom": "^26.0.0",
"lint-staged": "^15.4.3",
"lodash-es": "^4.17.21",
"postcss": "^8.5.2",
"postcss": "^8.5.3",
"postcss-html": "^1.8.0",
"postcss-scss": "^4.0.9",
"rollup": "^4.34.6",
"sass": "1.85.0",
"stylelint": "^16.14.1",
"rollup": "^4.35.0",
"sass": "1.85.1",
"stylelint": "^16.15.0",
"stylelint-config-recommended-scss": "14.1.0",
"stylelint-config-recommended-vue": "^1.6.0",
"stylelint-config-standard": "^37.0.0",
"stylelint-config-standard-scss": "14.0.0",
"sucrase": "^3.35.0",
"typescript": "^5.7.3",
"unocss": "^65.4.3",
"unplugin-auto-import": "^19.0.0",
"unplugin-icons": "^22.0.0",
"unplugin-vue-components": "^28.0.0",
"vite": "^6.1.0",
"vitest": "^3.0.5",
"vue-eslint-parser": "^9.4.3"
"typescript": "^5.8.2",
"unocss": "66.1.0-beta.3",
"unplugin-auto-import": "^19.1.1",
"unplugin-icons": "^22.1.0",
"unplugin-vue-components": "^28.4.1",
"vite": "^6.2.1",
"vitest": "^3.0.8",
"vue-eslint-parser": "^10.1.1"
}
}
Loading

0 comments on commit c5fe174

Please sign in to comment.