Skip to content

Commit

Permalink
Merge pull request #7644 from wenzhixin/update/theme
Browse files Browse the repository at this point in the history
Updated themes eslint and packages
  • Loading branch information
wenzhixin authored Dec 11, 2024
2 parents 63872d3 + 073a91b commit 5cedc69
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 96 deletions.
75 changes: 0 additions & 75 deletions site/_themes/.eslintrc.cjs

This file was deleted.

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

export default [
{
ignores: [
'dist/'
]
},
...base,
...pluginVue.configs['flat/recommended'],
{
rules: {
'vue/multi-word-component-names': 'off'
}
}
]
26 changes: 6 additions & 20 deletions site/_themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,20 @@
"name": "themes",
"version": "1.0.0",
"private": true,
"module": "type",
"type": "module",
"scripts": {
"serve": "vite",
"build": "vite build",
"lint": "eslint ."
},
"dependencies": {
"vue": "^3.4.31"
"vue": "^3.5.13"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.5",
"eslint": "^8.49.0",
"eslint-plugin-vue": "^9.27.0",
"vite": "^5.3.3"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"rules": {},
"parserOptions": {
"ecmaVersion": "latest"
}
"@vitejs/plugin-vue": "^5.2.1",
"eslint": "^9.16.0",
"eslint-plugin-vue": "^9.32.0",
"vite": "^6.0.3"
},
"browserslist": [
"> 1%",
Expand Down
2 changes: 1 addition & 1 deletion site/_themes/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
},
build: {
rollupOptions: {
input: process.env.NODE_ENV === 'production' ? 'themes.html' : 'index.html',
input: process.env.NODE_ENV === 'production' ? 'themes.html' : 'index.html'
}
},
server: {
Expand Down

0 comments on commit 5cedc69

Please sign in to comment.