Skip to content

Commit

Permalink
fix: eslint v9 版本配置文件更新 (#1927)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raindrop-YL authored Nov 8, 2024
1 parent 35fd5c8 commit 1c25195
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 24 deletions.
4 changes: 0 additions & 4 deletions web/.eslintignore

This file was deleted.

17 changes: 0 additions & 17 deletions web/.eslintrc.js

This file was deleted.

17 changes: 17 additions & 0 deletions web/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import js from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'

export default [
{
name: 'app/files-to-lint',
files: ['**/*.{js,mjs,jsx,vue}'],
},

{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/build/*.js', '**/src/assets/**', '**/public/**'],
},

js.configs.recommended,
...pluginVue.configs['flat/essential'],
]
8 changes: 5 additions & 3 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "gin-vue-admin",
"version": "2.7.7",
"private": true,
"type": "module",
"scripts": {
"serve": "node openDocument.js && vite --host --mode development",
"build": "vite build --mode production",
Expand Down Expand Up @@ -49,8 +50,9 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.25.1",
"@eslint/js": "^9.14.0",
"@vitejs/plugin-legacy": "^5.4.2",
"@vitejs/plugin-vue": "^5.1.3",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-eslint": "~5.0.8",
"@vue/cli-plugin-router": "~5.0.8",
Expand All @@ -60,8 +62,8 @@
"babel-plugin-import": "^1.13.8",
"chalk": "^5.3.0",
"dotenv": "^16.4.5",
"eslint": "^9.9.1",
"eslint-plugin-vue": "^9.28.0",
"eslint": "^9.14.0",
"eslint-plugin-vue": "^9.30.0",
"sass": "^1.78.0",
"terser": "^5.31.6",
"vite": "^5.4.3",
Expand Down

0 comments on commit 1c25195

Please sign in to comment.