chore: update linter config

This commit is contained in:
Justineo
2024-07-24 14:48:53 +08:00
committed by GU Yiling
parent 9fe76efa93
commit 2d310a3891
5 changed files with 1677 additions and 1405 deletions

View File

@ -3,7 +3,11 @@
"env": { "env": {
"node": true "node": true
}, },
"extends": ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/prettier"], "extends": [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/prettier"
],
"parserOptions": { "parserOptions": {
"ecmaVersion": 2020, "ecmaVersion": 2020,
"parser": "@typescript-eslint/parser" "parser": "@typescript-eslint/parser"
@ -16,8 +20,10 @@
{ {
"files": ["*.ts"], "files": ["*.ts"],
"extends": [ "extends": [
"@vue/typescript/recommended", "plugin:vue/vue3-essential",
"@vue/prettier/@typescript-eslint" "eslint:recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier/skip-formatting"
] ]
} }
] ]

View File

@ -43,49 +43,48 @@
} }
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.24.4", "@babel/core": "^7.24.9",
"@highlightjs/vue-plugin": "^2.1.0", "@highlightjs/vue-plugin": "^2.1.0",
"@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5", "@rollup/plugin-replace": "^5.0.7",
"@rollup/plugin-terser": "^0.4.4", "@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^7.17.0",
"@typescript-eslint/parser": "^4.33.0", "@vercel/analytics": "^1.3.1",
"@vercel/analytics": "^1.2.2",
"@vue/cli-plugin-babel": "^5.0.8", "@vue/cli-plugin-babel": "^5.0.8",
"@vue/cli-plugin-eslint": "^5.0.8", "@vue/cli-plugin-eslint": "^5.0.8",
"@vue/cli-plugin-typescript": "^5.0.8", "@vue/cli-plugin-typescript": "^5.0.8",
"@vue/cli-service": "^5.0.8", "@vue/cli-service": "^5.0.8",
"@vue/compiler-sfc": "^3.4.24", "@vue/compiler-sfc": "^3.4.33",
"@vue/eslint-config-prettier": "^6.0.0", "@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^10.0.0", "@vue/eslint-config-typescript": "^13.0.0",
"@vueuse/core": "^10.9.0", "@vueuse/core": "^10.11.0",
"comment-mark": "^1.1.1", "comment-mark": "^1.1.1",
"core-js": "^3.37.0", "core-js": "^3.37.1",
"echarts": "^5.5.1", "echarts": "^5.5.1",
"echarts-gl": "^2.0.9", "echarts-gl": "^2.0.9",
"echarts-liquidfill": "^3.1.0", "echarts-liquidfill": "^3.1.0",
"esbuild-wasm": "^0.23.0", "esbuild-wasm": "^0.23.0",
"eslint": "^7.32.0", "eslint": "^8.57.0",
"eslint-plugin-prettier": "^3.4.1", "eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^8.7.1", "eslint-plugin-vue": "^9.27.0",
"highlight.js": "^11.9.0", "highlight.js": "^11.10.0",
"pinia": "^2.1.7", "pinia": "^2.1.7",
"postcss": "^8.4.38", "postcss": "^8.4.39",
"postcss-loader": "^5.3.0", "postcss-loader": "^8.1.1",
"postcss-nested": "^5.0.6", "postcss-nested": "^6.2.0",
"prettier": "^2.8.8", "prettier": "^3.3.3",
"publint": "^0.2.8", "publint": "^0.2.9",
"raw-loader": "^4.0.2", "raw-loader": "^4.0.2",
"resize-detector": "^0.3.0", "resize-detector": "^0.3.0",
"rimraf": "^3.0.2", "rimraf": "^6.0.1",
"rollup": "^4.12.0", "rollup": "^4.19.0",
"rollup-plugin-dts": "^6.1.0", "rollup-plugin-dts": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-esbuild": "^6.1.1",
"rollup-plugin-import-css": "^3.5.0", "rollup-plugin-import-css": "^3.5.0",
"tslib": "^2.6.2", "tslib": "^2.6.3",
"typescript": "4.6.4", "typescript": "5.5.4",
"vue": "^3.4.24", "vue": "^3.4.33",
"vue2": "npm:vue@^2.7.16", "vue2": "npm:vue@^2.7.16",
"webpack": "^5.91.0" "webpack": "^5.93.0"
} }
} }

3005
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -413,7 +413,9 @@ input[type="number"] {
transform: translate(-50%, 200%); transform: translate(-50%, 200%);
border-radius: 4px; border-radius: 4px;
opacity: 0; opacity: 0;
transition: transform 0.2s, opacity 0.2s; transition:
transform 0.2s,
opacity 0.2s;
} }
.message.open { .message.open {

View File

@ -21,12 +21,12 @@ export default {
.type("asset/source"); .type("asset/source");
config.module config.module
.rule('wasm') .rule("wasm")
.test(/\.wasm$/) .test(/\.wasm$/)
.type('asset/resource') .type("asset/resource")
.set('generator', { .set("generator", {
filename: '[name].[hash:8][ext]' filename: "[name].[hash:8][ext]"
}) });
config.plugin("define").tap(([options]) => [ config.plugin("define").tap(([options]) => [
{ {