更新依赖,修改lint配置

This commit is contained in:
Hooray
2023-03-28 01:14:35 +08:00
parent a83a8213e1
commit b6e47b6f6d
8 changed files with 75 additions and 54 deletions
+2
View File
@@ -0,0 +1,2 @@
dist
node_modules
+1
View File
@@ -1,6 +1,7 @@
{
"extends": "@antfu",
"rules": {
"eslint-comments/no-unlimited-disable": "off",
"curly": ["error", "all"],
"vue/component-tags-order": ["error", {
"order": ["route", "script", "template", "style"]
+2 -3
View File
@@ -1,5 +1,4 @@
{
"src/**/*.{js,jsx,ts,tsx}": "eslint --cache --fix",
"src/**/*.{css,scss}": "stylelint --cache --fix --allow-empty-input",
"src/**/*.vue": ["eslint --cache --fix", "stylelint --cache --fix --allow-empty-input"]
"src/**/*.{ts,tsx,vue}": "eslint --cache --fix --no-ignore --no-error-on-unmatched-pattern",
"src/**/*.{css,scss,vue}": "stylelint --cache --fix --allow-empty-input"
}
+3 -3
View File
@@ -1,3 +1,3 @@
dist/
node_modules/
src/assets/sprites/
dist
node_modules
src/assets/sprites
+6 -6
View File
@@ -7,8 +7,8 @@
"new": "plop",
"lint": "npm-run-all -s lint:tsc lint:eslint lint:stylelint",
"lint:tsc": "vue-tsc --noEmit",
"lint:eslint": "eslint src/**/*.{ts,tsx,vue} --cache --fix",
"lint:stylelint": "stylelint src/**/*.{css,scss,vue} --cache --fix",
"lint:eslint": "eslint src/**/*.{ts,tsx,vue} --cache --fix --no-ignore --no-error-on-unmatched-pattern",
"lint:stylelint": "stylelint src/**/*.{css,scss,vue} --cache --fix --allow-empty-input",
"postinstall": "simple-git-hooks && esno scripts/prepare.js",
"preinstall": "npx only-allow pnpm"
},
@@ -52,17 +52,17 @@
"npm-run-all": "^4.1.5",
"plop": "^3.1.2",
"postcss-html": "^1.5.0",
"sass": "^1.59.3",
"sass": "^1.60.0",
"simple-git-hooks": "^2.8.1",
"stylelint": "^15.3.0",
"stylelint-config-standard": "^31.0.0",
"stylelint-config-standard-scss": "^7.0.1",
"stylelint-config-standard-vue": "^1.0.0",
"stylelint-scss": "^4.5.0",
"stylelint-scss": "^4.6.0",
"svgo": "^3.0.2",
"terser": "^5.16.6",
"terser": "^5.16.8",
"typescript": "^5.0.2",
"unplugin-auto-import": "^0.15.1",
"unplugin-auto-import": "^0.15.2",
"unplugin-vue-components": "^0.24.1",
"vite": "^4.2.1",
"vite-plugin-banner": "^0.7.0",
+57 -37
View File
@@ -34,18 +34,18 @@ specifiers:
plop: ^3.1.2
postcss-html: ^1.5.0
qs: ^6.11.1
sass: ^1.59.3
sass: ^1.60.0
simple-git-hooks: ^2.8.1
stylelint: ^15.3.0
stylelint-config-standard: ^31.0.0
stylelint-config-standard-scss: ^7.0.1
stylelint-config-standard-vue: ^1.0.0
stylelint-scss: ^4.5.0
stylelint-scss: ^4.6.0
svgo: ^3.0.2
terser: ^5.16.6
terser: ^5.16.8
tinymce: ^6.4.0
typescript: ^5.0.2
unplugin-auto-import: ^0.15.1
unplugin-auto-import: ^0.15.2
unplugin-vue-components: ^0.24.1
vconsole: ^3.15.0
vite: ^4.2.1
@@ -102,19 +102,19 @@ devDependencies:
npm-run-all: 4.1.5
plop: 3.1.2
postcss-html: 1.5.0
sass: 1.59.3
sass: 1.60.0
simple-git-hooks: 2.8.1
stylelint: 15.3.0
stylelint-config-standard: 31.0.0_stylelint@15.3.0
stylelint-config-standard-scss: 7.0.1_stylelint@15.3.0
stylelint-config-standard-vue: 1.0.0_o7z2z2yv565o3a3uaodintvte4
stylelint-scss: 4.5.0_stylelint@15.3.0
stylelint-scss: 4.6.0_stylelint@15.3.0
svgo: 3.0.2
terser: 5.16.6
terser: 5.16.8
typescript: 5.0.2
unplugin-auto-import: 0.15.1_@vueuse+core@9.13.0
unplugin-auto-import: 0.15.2_@vueuse+core@9.13.0
unplugin-vue-components: 0.24.1_vue@3.2.47
vite: 4.2.1_sass@1.59.3+terser@5.16.6
vite: 4.2.1_sass@1.60.0+terser@5.16.8
vite-plugin-banner: 0.7.0
vite-plugin-compression: 0.5.1_vite@4.2.1
vite-plugin-mock: 2.9.6_mockjs@1.1.0+vite@4.2.1
@@ -1341,7 +1341,7 @@ packages:
'@babel/core': 7.21.3
'@babel/plugin-transform-typescript': 7.21.3_@babel+core@7.21.3
'@vue/babel-plugin-jsx': 1.1.1_@babel+core@7.21.3
vite: 4.2.1_sass@1.59.3+terser@5.16.6
vite: 4.2.1_sass@1.60.0+terser@5.16.8
vue: 3.2.47
transitivePeerDependencies:
- supports-color
@@ -1354,7 +1354,7 @@ packages:
vite: ^4.0.0
vue: ^3.2.25
dependencies:
vite: 4.2.1_sass@1.59.3+terser@5.16.6
vite: 4.2.1_sass@1.60.0+terser@5.16.8
vue: 3.2.47
dev: true
@@ -2700,6 +2700,10 @@ packages:
path-type: 4.0.0
dev: true
/dlv/1.1.3:
resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
dev: true
/doctrine/2.1.0:
resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==}
engines: {node: '>=0.10.0'}
@@ -5597,6 +5601,13 @@ packages:
brace-expansion: 2.0.1
dev: true
/minimatch/7.4.3:
resolution: {integrity: sha512-5UB4yYusDtkRPbRiy1cqZ1IpGNcJCGlEMG17RKzPddpyiPKoCdwohbED8g4QXT0ewCt8LTkQXuljsUfQ3FKM4A==}
engines: {node: '>=10'}
dependencies:
brace-expansion: 2.0.1
dev: true
/minimist-options/4.1.0:
resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==}
engines: {node: '>= 6'}
@@ -6820,8 +6831,8 @@ packages:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
dev: true
/sass/1.59.3:
resolution: {integrity: sha512-QCq98N3hX1jfTCoUAsF3eyGuXLsY7BCnCEg9qAact94Yc21npG2/mVOqoDvE0fCbWDqiM4WlcJQla0gWG2YlxQ==}
/sass/1.60.0:
resolution: {integrity: sha512-updbwW6fNb5gGm8qMXzVO7V4sWf7LMXnMly/JEyfbfERbVH46Fn6q02BX7/eHTdKpE7d+oTkMMQpFWNUMfFbgQ==}
engines: {node: '>=12.0.0'}
hasBin: true
dependencies:
@@ -7320,7 +7331,7 @@ packages:
postcss-scss: 4.0.6
stylelint: 15.3.0
stylelint-config-recommended: 10.0.1_stylelint@15.3.0
stylelint-scss: 4.5.0_stylelint@15.3.0
stylelint-scss: 4.6.0_stylelint@15.3.0
dev: true
/stylelint-config-recommended-vue/1.4.0_o7z2z2yv565o3a3uaodintvte4:
@@ -7399,12 +7410,12 @@ packages:
stylelint-config-recommended: 11.0.0_stylelint@15.3.0
dev: true
/stylelint-scss/4.5.0_stylelint@15.3.0:
resolution: {integrity: sha512-/+rQ8FePOiwT5xblOHkujYzRYfSjmE6HYhLpqJShL+9wH6/HaAVj4mWpXlpEsM3ZgIpOblG9Y+/BycSJzWgjNw==}
/stylelint-scss/4.6.0_stylelint@15.3.0:
resolution: {integrity: sha512-M+E0BQim6G4XEkaceEhfVjP/41C9Klg5/tTPTCQVlgw/jm2tvB+OXJGaU0TDP5rnTCB62aX6w+rT+gqJW/uwjA==}
peerDependencies:
stylelint: ^14.5.1 || ^15.0.0
dependencies:
lodash: 4.17.21
dlv: 1.1.3
postcss-media-query-parser: 0.2.3
postcss-resolve-nested-selector: 0.1.1
postcss-selector-parser: 6.0.11
@@ -7564,8 +7575,8 @@ packages:
strip-ansi: 6.0.1
dev: true
/terser/5.16.6:
resolution: {integrity: sha512-IBZ+ZQIA9sMaXmRZCUMDjNH0D5AQQfdn4WUjHL0+1lF4TP1IHRJbrhb6fNaXWikrYQTSkb7SLxkeXAiy1p7mbg==}
/terser/5.16.8:
resolution: {integrity: sha512-QI5g1E/ef7d+PsDifb+a6nnVgC4F22Bg6T0xrBrz6iloVB4PUkkunp6V8nzoOOZJIzjWVdAGqCdlKlhLq/TbIA==}
engines: {node: '>=10'}
hasBin: true
dependencies:
@@ -7794,8 +7805,8 @@ packages:
resolution: {integrity: sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==}
dev: true
/unimport/3.0.2:
resolution: {integrity: sha512-OQ0hShpcerS1PSsISsyn/NV2dGe5xfdUn4p5nwOodq0iqq5xxYQrTidHqlFGjxIliPDtDJp80OeySzyPTjYHmA==}
/unimport/3.0.4:
resolution: {integrity: sha512-eoof/HLiNJcIkVpnqc7sJbzKSLx39J6xTaP7E4ElgVQKeq2t9fPTkvJKcA55IJTaRPkEkDq8kcc/IZPmrypnFg==}
dependencies:
'@rollup/pluginutils': 5.0.2
escape-string-regexp: 5.0.0
@@ -7807,7 +7818,7 @@ packages:
pkg-types: 1.0.2
scule: 1.0.0
strip-literal: 1.0.1
unplugin: 1.2.0
unplugin: 1.3.1
transitivePeerDependencies:
- rollup
dev: true
@@ -7849,8 +7860,8 @@ packages:
engines: {node: '>= 0.8'}
dev: true
/unplugin-auto-import/0.15.1_@vueuse+core@9.13.0:
resolution: {integrity: sha512-xLS+BfVNy00Y3IkqBmEd0IThvjx8kSGIgSuf/1kETttiENK8sHrDA+poKkQxRCPTKYH4yWM6txGQANPTzwpUWQ==}
/unplugin-auto-import/0.15.2_@vueuse+core@9.13.0:
resolution: {integrity: sha512-Wivfu+xccgvEZG8QtZcIvt6napfX9wyOFqM//7FHOtev8+k+dp3ykiqsEl6TODgHmqTTBeQX4Ah1JvRgUNjlkg==}
engines: {node: '>=14'}
peerDependencies:
'@nuxt/kit': ^3.2.2
@@ -7866,9 +7877,9 @@ packages:
'@vueuse/core': 9.13.0_vue@3.2.47
local-pkg: 0.4.3
magic-string: 0.30.0
minimatch: 7.4.2
unimport: 3.0.2
unplugin: 1.2.0
minimatch: 7.4.3
unimport: 3.0.4
unplugin: 1.3.1
transitivePeerDependencies:
- rollup
dev: true
@@ -7911,6 +7922,15 @@ packages:
webpack-virtual-modules: 0.5.0
dev: true
/unplugin/1.3.1:
resolution: {integrity: sha512-h4uUTIvFBQRxUKS2Wjys6ivoeofGhxzTe2sRWlooyjHXVttcVfV/JiavNd3d4+jty0SVV0dxGw9AkY9MwiaCEw==}
dependencies:
acorn: 8.8.2
chokidar: 3.5.3
webpack-sources: 3.2.3
webpack-virtual-modules: 0.5.0
dev: true
/unset-value/1.0.0:
resolution: {integrity: sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==}
engines: {node: '>=0.10.0'}
@@ -8047,7 +8067,7 @@ packages:
chalk: 4.1.2
debug: 4.3.4
fs-extra: 10.1.0
vite: 4.2.1_sass@1.59.3+terser@5.16.6
vite: 4.2.1_sass@1.60.0+terser@5.16.8
transitivePeerDependencies:
- supports-color
dev: true
@@ -8069,7 +8089,7 @@ packages:
fast-glob: 3.2.12
mockjs: 1.1.0
path-to-regexp: 6.2.1
vite: 4.2.1_sass@1.59.3+terser@5.16.6
vite: 4.2.1_sass@1.60.0+terser@5.16.8
transitivePeerDependencies:
- rollup
- supports-color
@@ -8092,7 +8112,7 @@ packages:
json5: 2.2.3
local-pkg: 0.4.3
picocolors: 1.0.0
vite: 4.2.1_sass@1.59.3+terser@5.16.6
vite: 4.2.1_sass@1.60.0+terser@5.16.8
yaml: 2.2.1
transitivePeerDependencies:
- supports-color
@@ -8122,7 +8142,7 @@ packages:
pathe: 0.2.0
svg-baker: 1.7.0
svgo: 2.8.0
vite: 4.2.1_sass@1.59.3+terser@5.16.6
vite: 4.2.1_sass@1.60.0+terser@5.16.8
transitivePeerDependencies:
- supports-color
dev: true
@@ -8141,7 +8161,7 @@ packages:
kolorist: 1.7.0
magic-string: 0.30.0
shell-quote: 1.8.0
vite: 4.2.1_sass@1.59.3+terser@5.16.6
vite: 4.2.1_sass@1.60.0+terser@5.16.8
transitivePeerDependencies:
- supports-color
dev: true
@@ -8156,7 +8176,7 @@ packages:
'@vue/compiler-sfc': 3.2.47
debug: 4.3.4
fast-glob: 3.2.12
vite: 4.2.1_sass@1.59.3+terser@5.16.6
vite: 4.2.1_sass@1.60.0+terser@5.16.8
vue: 3.2.47
vue-router: 4.1.6_vue@3.2.47
transitivePeerDependencies:
@@ -8170,10 +8190,10 @@ packages:
dependencies:
'@vue/compiler-sfc': 3.2.41
magic-string: 0.25.9
vite: 4.2.1_sass@1.59.3+terser@5.16.6
vite: 4.2.1_sass@1.60.0+terser@5.16.8
dev: true
/vite/4.2.1_sass@1.59.3+terser@5.16.6:
/vite/4.2.1_sass@1.60.0+terser@5.16.8:
resolution: {integrity: sha512-7MKhqdy0ISo4wnvwtqZkjke6XN4taqQ2TBaTccLIpOKv7Vp2h4Y+NpmWCnGDeSvvn45KxvWgGyb0MkHvY1vgbg==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
@@ -8202,8 +8222,8 @@ packages:
postcss: 8.4.21
resolve: 1.22.1
rollup: 3.20.0
sass: 1.59.3
terser: 5.16.6
sass: 1.60.0
terser: 5.16.8
optionalDependencies:
fsevents: 2.3.2
dev: true
+2 -3
View File
@@ -1,5 +1,4 @@
import type { StyleValue } from "vue"
import type { RouteRecordRaw, RouteMeta, NavigationGuard } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'
type RecursiveRequired<T> = {
[P in keyof T]-?: RecursiveRequired<T[P]>
@@ -234,7 +233,7 @@ declare namespace Route {
icon?: string
auth?: string | string[]
}
children: recordRaw[]
children: RouteRecordRaw[]
}
interface breadcrumb {
path: string
+2 -2
View File
@@ -220,7 +220,7 @@ function testAccount(account: string) {
</el-input>
</el-form-item>
<el-form-item prop="captcha">
<el-input ref="captcha" v-model="registerForm.captcha" placeholder="验证码" tabindex="2" autocomplete="on">
<el-input v-model="registerForm.captcha" placeholder="验证码" tabindex="2" autocomplete="on">
<template #prefix>
<el-icon>
<svg-icon name="ep:key" />
@@ -277,7 +277,7 @@ function testAccount(account: string) {
</el-input>
</el-form-item>
<el-form-item prop="captcha">
<el-input ref="captcha" v-model="resetForm.captcha" placeholder="验证码" tabindex="2" autocomplete="on">
<el-input v-model="resetForm.captcha" placeholder="验证码" tabindex="2" autocomplete="on">
<template #prefix>
<el-icon>
<svg-icon name="ep:key" />