chore: update config

pull/35/head
xingyu 2023-09-19 10:56:19 +08:00
parent 66a1da3dd2
commit 4726b7448f
4 changed files with 54 additions and 44 deletions

View File

@ -17,5 +17,10 @@ module.exports = {
'no-case-declarations': 'off', 'no-case-declarations': 'off',
'no-console': 'off', 'no-console': 'off',
'n/prefer-global/process': 'off', 'n/prefer-global/process': 'off',
'jsdoc/no-multi-asterisks': 'off',
'jsdoc/valid-types': 'off',
'jsdoc/check-param-names': 'off',
'jsdoc/require-returns-description': 'off',
'jsdoc/require-returns-check': 'off',
}, },
} }

View File

@ -19,9 +19,11 @@
"**/.idea": true, "**/.idea": true,
"**/.vscode": false, "**/.vscode": false,
"**/yarn.lock": true, "**/yarn.lock": true,
"pnpm-lock.yaml": true,
"**/tmp": true, "**/tmp": true,
"out": true, "out": true,
"dist": true, "dist": true,
"public": true,
"node_modules": true, "node_modules": true,
"CHANGELOG.md": true, "CHANGELOG.md": true,
"examples": true, "examples": true,
@ -103,6 +105,7 @@
"[vue]": { "[vue]": {
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.eslint": true, "source.fixAll.eslint": true,
"source.organizeImports": false,
"source.fixAll.stylelint": true "source.fixAll.stylelint": true
} }
}, },
@ -146,7 +149,9 @@
"unref", "unref",
"vben", "vben",
"vditor", "vditor",
"videojs",
"vitejs", "vitejs",
"vuedraggable",
"vueuse", "vueuse",
"xingyuv", "xingyuv",
"yudao", "yudao",

View File

@ -38,7 +38,7 @@
"clean:lib": "rimraf node_modules", "clean:lib": "rimraf node_modules",
"lint": "eslint \"src/**/*.{vue,ts,tsx}\"", "lint": "eslint \"src/**/*.{vue,ts,tsx}\"",
"lint:fix": "eslint \"src/**/*.{vue,ts,tsx}\" --fix", "lint:fix": "eslint \"src/**/*.{vue,ts,tsx}\" --fix",
"lint:stylelint": "stylelint \"**/*.{vue,css,less,scss}\" --fix --cache --cache-location node_modules/.cache/stylelint/", "lint:stylelint": "stylelint \"src/**/*.{vue,css,less,scss}\" --fix --cache --cache-location node_modules/.cache/stylelint/",
"lint:lint-staged": "lint-staged", "lint:lint-staged": "lint-staged",
"npm:check": "npx npm-check-updates", "npm:check": "npx npm-check-updates",
"reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && pnpm bootstrap", "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && pnpm bootstrap",
@ -82,7 +82,7 @@
"xlsx": "^0.18.5" "xlsx": "^0.18.5"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^0.42.0", "@antfu/eslint-config": "^0.42.1",
"@commitlint/cli": "^17.7.1", "@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0", "@commitlint/config-conventional": "^17.7.0",
"@iconify/json": "^2.2.117", "@iconify/json": "^2.2.117",
@ -112,7 +112,7 @@
"less": "^4.2.0", "less": "^4.2.0",
"lint-staged": "^14.0.1", "lint-staged": "^14.0.1",
"picocolors": "^1.0.0", "picocolors": "^1.0.0",
"postcss": "^8.4.29", "postcss": "^8.4.30",
"postcss-html": "^1.5.0", "postcss-html": "^1.5.0",
"postcss-less": "^6.0.0", "postcss-less": "^6.0.0",
"prettier": "^3.0.3", "prettier": "^3.0.3",

View File

@ -110,8 +110,8 @@ dependencies:
devDependencies: devDependencies:
'@antfu/eslint-config': '@antfu/eslint-config':
specifier: ^0.42.0 specifier: ^0.42.1
version: 0.42.0(eslint@8.49.0)(typescript@5.2.2) version: 0.42.1(eslint@8.49.0)(typescript@5.2.2)
'@commitlint/cli': '@commitlint/cli':
specifier: ^17.7.1 specifier: ^17.7.1
version: 17.7.1 version: 17.7.1
@ -200,14 +200,14 @@ devDependencies:
specifier: ^1.0.0 specifier: ^1.0.0
version: 1.0.0 version: 1.0.0
postcss: postcss:
specifier: ^8.4.29 specifier: ^8.4.30
version: 8.4.29 version: 8.4.30
postcss-html: postcss-html:
specifier: ^1.5.0 specifier: ^1.5.0
version: 1.5.0 version: 1.5.0
postcss-less: postcss-less:
specifier: ^6.0.0 specifier: ^6.0.0
version: 6.0.0(postcss@8.4.29) version: 6.0.0(postcss@8.4.30)
prettier: prettier:
specifier: ^3.0.3 specifier: ^3.0.3
version: 3.0.3 version: 3.0.3
@ -249,7 +249,7 @@ devDependencies:
version: 5.2.2 version: 5.2.2
unocss: unocss:
specifier: ^0.55.7 specifier: ^0.55.7
version: 0.55.7(postcss@8.4.29)(rollup@3.29.2)(vite@4.4.9) version: 0.55.7(postcss@8.4.30)(rollup@3.29.2)(vite@4.4.9)
vite: vite:
specifier: ^4.4.9 specifier: ^4.4.9
version: 4.4.9(@types/node@20.6.0)(less@4.2.0)(terser@5.19.4) version: 4.4.9(@types/node@20.6.0)(less@4.2.0)(terser@5.19.4)
@ -322,13 +322,13 @@ packages:
vue: 3.3.4 vue: 3.3.4
dev: false dev: false
/@antfu/eslint-config-basic@0.42.0(@typescript-eslint/eslint-plugin@6.7.0)(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2): /@antfu/eslint-config-basic@0.42.1(@typescript-eslint/eslint-plugin@6.7.0)(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2):
resolution: {integrity: sha512-vPy2qYCc8G8nd7RuHV4z05RUhvFOwtulcBwzEYPQTbd4IqbqJ9UA8ISgp1qYcJvbz74eR3mUl8r4b0OzxngPkg==} resolution: {integrity: sha512-VYcWpDXAYytrYNH4LjNy42t0d/fq1dFOsnIs6DyqDKdvMAlXN7ScksFAgm/NBaTnBcaBrySCIG+cLQPk5wLTIg==}
peerDependencies: peerDependencies:
eslint: '>=7.4.0' eslint: '>=7.4.0'
dependencies: dependencies:
eslint: 8.49.0 eslint: 8.49.0
eslint-plugin-antfu: 0.42.0(eslint@8.49.0)(typescript@5.2.2) eslint-plugin-antfu: 0.42.1(eslint@8.49.0)(typescript@5.2.2)
eslint-plugin-eslint-comments: 3.2.0(eslint@8.49.0) eslint-plugin-eslint-comments: 3.2.0(eslint@8.49.0)
eslint-plugin-html: 7.1.0 eslint-plugin-html: 7.1.0
eslint-plugin-import: /eslint-plugin-i@2.28.1(@typescript-eslint/parser@6.7.0)(eslint@8.49.0) eslint-plugin-import: /eslint-plugin-i@2.28.1(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)
@ -352,13 +352,13 @@ packages:
- typescript - typescript
dev: true dev: true
/@antfu/eslint-config-ts@0.42.0(eslint@8.49.0)(typescript@5.2.2): /@antfu/eslint-config-ts@0.42.1(eslint@8.49.0)(typescript@5.2.2):
resolution: {integrity: sha512-XYnWaNYhGeSgXZLpgPUsn0qHaBCJoNJVPD712fwLEGTJ5a5QctT5v04TRERJmeqfk67EaVMlsuDveLx3fqVuyQ==} resolution: {integrity: sha512-gCz6sapcwZIsXu8LB9THR0r4hHKnNY7HZe4op0AwlK/lA5dO4sSLk68M9ig3CdaRkIW8LTC/sAKyQhX7md6++w==}
peerDependencies: peerDependencies:
eslint: '>=7.4.0' eslint: '>=7.4.0'
typescript: '>=3.9' typescript: '>=3.9'
dependencies: dependencies:
'@antfu/eslint-config-basic': 0.42.0(@typescript-eslint/eslint-plugin@6.7.0)(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) '@antfu/eslint-config-basic': 0.42.1(@typescript-eslint/eslint-plugin@6.7.0)(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2)
'@typescript-eslint/eslint-plugin': 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/eslint-plugin': 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2)
'@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2)
eslint: 8.49.0 eslint: 8.49.0
@ -371,13 +371,13 @@ packages:
- supports-color - supports-color
dev: true dev: true
/@antfu/eslint-config-vue@0.42.0(@typescript-eslint/eslint-plugin@6.7.0)(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2): /@antfu/eslint-config-vue@0.42.1(@typescript-eslint/eslint-plugin@6.7.0)(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2):
resolution: {integrity: sha512-QiD16D5bk99EImRc/z0mnO4TeP0cMMPIOMO8RamJ1ChD/lIluEZFjBTRykTesRyc7+YsdJYit4M/t6hu8YeSww==} resolution: {integrity: sha512-9F+AyDHw9exEcg1RNhDoTyHgsanBkKE2kZ8Atadn2O8EMbrFE383tETxO+VTv1Dr71z9qaVA2SVQjesPzctQVg==}
peerDependencies: peerDependencies:
eslint: '>=7.4.0' eslint: '>=7.4.0'
dependencies: dependencies:
'@antfu/eslint-config-basic': 0.42.0(@typescript-eslint/eslint-plugin@6.7.0)(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) '@antfu/eslint-config-basic': 0.42.1(@typescript-eslint/eslint-plugin@6.7.0)(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2)
'@antfu/eslint-config-ts': 0.42.0(eslint@8.49.0)(typescript@5.2.2) '@antfu/eslint-config-ts': 0.42.1(eslint@8.49.0)(typescript@5.2.2)
eslint: 8.49.0 eslint: 8.49.0
eslint-plugin-vue: 9.17.0(eslint@8.49.0) eslint-plugin-vue: 9.17.0(eslint@8.49.0)
local-pkg: 0.4.3 local-pkg: 0.4.3
@ -391,12 +391,12 @@ packages:
- typescript - typescript
dev: true dev: true
/@antfu/eslint-config@0.42.0(eslint@8.49.0)(typescript@5.2.2): /@antfu/eslint-config@0.42.1(eslint@8.49.0)(typescript@5.2.2):
resolution: {integrity: sha512-RdTn+ggGF/mctHjnzLvImx/+RV18HwVTvC/jeHSF4bKBTA3eTftq+FrxWuCpmrEQRIb+J/tn2gmNpzizUo1PLQ==} resolution: {integrity: sha512-/U5PRCTPUI5khNMl4jBw1tLii7biJcrgD3yJEnxCQiTOjkfuVJeESSZieI5Qlu0zVXuudpq8R5VApCKjH4TpsA==}
peerDependencies: peerDependencies:
eslint: '>=7.4.0' eslint: '>=7.4.0'
dependencies: dependencies:
'@antfu/eslint-config-vue': 0.42.0(@typescript-eslint/eslint-plugin@6.7.0)(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) '@antfu/eslint-config-vue': 0.42.1(@typescript-eslint/eslint-plugin@6.7.0)(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2)
'@typescript-eslint/eslint-plugin': 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/eslint-plugin': 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2)
'@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2)
eslint: 8.49.0 eslint: 8.49.0
@ -3018,7 +3018,7 @@ packages:
sirv: 2.0.3 sirv: 2.0.3
dev: true dev: true
/@unocss/postcss@0.55.7(postcss@8.4.29): /@unocss/postcss@0.55.7(postcss@8.4.30):
resolution: {integrity: sha512-53Z/yv/CNdlTqKZQ9gpYRoLZSuzQ28J0SDrGCdzwjLcvHG/FD7/x1S7yxE7cUp/4sjvLL15HSzkWq8vNy6SkwQ==} resolution: {integrity: sha512-53Z/yv/CNdlTqKZQ9gpYRoLZSuzQ28J0SDrGCdzwjLcvHG/FD7/x1S7yxE7cUp/4sjvLL15HSzkWq8vNy6SkwQ==}
engines: {node: '>=14'} engines: {node: '>=14'}
peerDependencies: peerDependencies:
@ -3029,7 +3029,7 @@ packages:
css-tree: 2.3.1 css-tree: 2.3.1
fast-glob: 3.3.1 fast-glob: 3.3.1
magic-string: 0.30.3 magic-string: 0.30.3
postcss: 8.4.29 postcss: 8.4.30
dev: true dev: true
/@unocss/preset-attributify@0.55.7: /@unocss/preset-attributify@0.55.7:
@ -3287,7 +3287,7 @@ packages:
'@vue/shared': 3.3.4 '@vue/shared': 3.3.4
estree-walker: 2.0.2 estree-walker: 2.0.2
magic-string: 0.30.3 magic-string: 0.30.3
postcss: 8.4.29 postcss: 8.4.30
source-map-js: 1.0.2 source-map-js: 1.0.2
/@vue/compiler-ssr@3.3.4: /@vue/compiler-ssr@3.3.4:
@ -4950,8 +4950,8 @@ packages:
- supports-color - supports-color
dev: true dev: true
/eslint-plugin-antfu@0.42.0(eslint@8.49.0)(typescript@5.2.2): /eslint-plugin-antfu@0.42.1(eslint@8.49.0)(typescript@5.2.2):
resolution: {integrity: sha512-Oztd2iw0SiwqCLyy9vygQycITIpH4VTtglUKbPvr6bMs5DfEZE8qpFihcHVyUjAVKJAjzMl+Pkz1hm+HVwT+2g==} resolution: {integrity: sha512-uW4Z/j3RSzwloR0Ym4f1rY/ZLrodSC7kd6XTLQccYdhNBgNswTzqPyfPtIeFV0XnlLp/B6AeXfOWcK4c5ZyFkg==}
dependencies: dependencies:
'@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2)
transitivePeerDependencies: transitivePeerDependencies:
@ -7608,17 +7608,17 @@ packages:
dependencies: dependencies:
htmlparser2: 8.0.2 htmlparser2: 8.0.2
js-tokens: 8.0.2 js-tokens: 8.0.2
postcss: 8.4.29 postcss: 8.4.30
postcss-safe-parser: 6.0.0(postcss@8.4.29) postcss-safe-parser: 6.0.0(postcss@8.4.30)
dev: true dev: true
/postcss-less@6.0.0(postcss@8.4.29): /postcss-less@6.0.0(postcss@8.4.30):
resolution: {integrity: sha512-FPX16mQLyEjLzEuuJtxA8X3ejDLNGGEG503d2YGZR5Ask1SpDN8KmZUMpzCvyalWRywAn1n1VOA5dcqfCLo5rg==} resolution: {integrity: sha512-FPX16mQLyEjLzEuuJtxA8X3ejDLNGGEG503d2YGZR5Ask1SpDN8KmZUMpzCvyalWRywAn1n1VOA5dcqfCLo5rg==}
engines: {node: '>=12'} engines: {node: '>=12'}
peerDependencies: peerDependencies:
postcss: ^8.3.5 postcss: ^8.3.5
dependencies: dependencies:
postcss: 8.4.29 postcss: 8.4.30
dev: true dev: true
/postcss-prefix-selector@1.16.0(postcss@5.2.18): /postcss-prefix-selector@1.16.0(postcss@5.2.18):
@ -7633,13 +7633,13 @@ packages:
resolution: {integrity: sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==} resolution: {integrity: sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==}
dev: true dev: true
/postcss-safe-parser@6.0.0(postcss@8.4.29): /postcss-safe-parser@6.0.0(postcss@8.4.30):
resolution: {integrity: sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==} resolution: {integrity: sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==}
engines: {node: '>=12.0'} engines: {node: '>=12.0'}
peerDependencies: peerDependencies:
postcss: ^8.3.3 postcss: ^8.3.3
dependencies: dependencies:
postcss: 8.4.29 postcss: 8.4.30
dev: true dev: true
/postcss-selector-parser@6.0.13: /postcss-selector-parser@6.0.13:
@ -7650,12 +7650,12 @@ packages:
util-deprecate: 1.0.2 util-deprecate: 1.0.2
dev: true dev: true
/postcss-sorting@8.0.2(postcss@8.4.29): /postcss-sorting@8.0.2(postcss@8.4.30):
resolution: {integrity: sha512-M9dkSrmU00t/jK7rF6BZSZauA5MAaBW4i5EnJXspMwt4iqTh/L9j6fgMnbElEOfyRyfLfVbIHj/R52zHzAPe1Q==} resolution: {integrity: sha512-M9dkSrmU00t/jK7rF6BZSZauA5MAaBW4i5EnJXspMwt4iqTh/L9j6fgMnbElEOfyRyfLfVbIHj/R52zHzAPe1Q==}
peerDependencies: peerDependencies:
postcss: ^8.4.20 postcss: ^8.4.20
dependencies: dependencies:
postcss: 8.4.29 postcss: 8.4.30
dev: true dev: true
/postcss-value-parser@4.2.0: /postcss-value-parser@4.2.0:
@ -7672,8 +7672,8 @@ packages:
supports-color: 3.2.3 supports-color: 3.2.3
dev: true dev: true
/postcss@8.4.29: /postcss@8.4.30:
resolution: {integrity: sha512-cbI+jaqIeu/VGqXEarWkRCCffhjgXc0qjBtXpqJhTBohMUjUQnbBr0xqX3vEKudc4iviTewcJo5ajcec5+wdJw==} resolution: {integrity: sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==}
engines: {node: ^10 || ^12 || >=14} engines: {node: ^10 || ^12 || >=14}
dependencies: dependencies:
nanoid: 3.3.6 nanoid: 3.3.6
@ -8650,8 +8650,8 @@ packages:
peerDependencies: peerDependencies:
stylelint: ^14.0.0 || ^15.0.0 stylelint: ^14.0.0 || ^15.0.0
dependencies: dependencies:
postcss: 8.4.29 postcss: 8.4.30
postcss-sorting: 8.0.2(postcss@8.4.29) postcss-sorting: 8.0.2(postcss@8.4.30)
stylelint: 15.10.3(typescript@5.2.2) stylelint: 15.10.3(typescript@5.2.2)
dev: true dev: true
@ -8699,9 +8699,9 @@ packages:
micromatch: 4.0.5 micromatch: 4.0.5
normalize-path: 3.0.0 normalize-path: 3.0.0
picocolors: 1.0.0 picocolors: 1.0.0
postcss: 8.4.29 postcss: 8.4.30
postcss-resolve-nested-selector: 0.1.1 postcss-resolve-nested-selector: 0.1.1
postcss-safe-parser: 6.0.0(postcss@8.4.29) postcss-safe-parser: 6.0.0(postcss@8.4.30)
postcss-selector-parser: 6.0.13 postcss-selector-parser: 6.0.13
postcss-value-parser: 4.2.0 postcss-value-parser: 4.2.0
resolve-from: 5.0.0 resolve-from: 5.0.0
@ -9187,7 +9187,7 @@ packages:
engines: {node: '>= 10.0.0'} engines: {node: '>= 10.0.0'}
dev: true dev: true
/unocss@0.55.7(postcss@8.4.29)(rollup@3.29.2)(vite@4.4.9): /unocss@0.55.7(postcss@8.4.30)(rollup@3.29.2)(vite@4.4.9):
resolution: {integrity: sha512-3W9P7vj2EhSk/4oPCHBS0VgrwSf5zZL6Az1/XARVOpBnRJtCM2szFInYxHkMgt9pkZTsW8SFCuk/g+QIJ6A8tg==} resolution: {integrity: sha512-3W9P7vj2EhSk/4oPCHBS0VgrwSf5zZL6Az1/XARVOpBnRJtCM2szFInYxHkMgt9pkZTsW8SFCuk/g+QIJ6A8tg==}
engines: {node: '>=14'} engines: {node: '>=14'}
peerDependencies: peerDependencies:
@ -9203,7 +9203,7 @@ packages:
'@unocss/cli': 0.55.7(rollup@3.29.2) '@unocss/cli': 0.55.7(rollup@3.29.2)
'@unocss/core': 0.55.7 '@unocss/core': 0.55.7
'@unocss/extractor-arbitrary-variants': 0.55.7 '@unocss/extractor-arbitrary-variants': 0.55.7
'@unocss/postcss': 0.55.7(postcss@8.4.29) '@unocss/postcss': 0.55.7(postcss@8.4.30)
'@unocss/preset-attributify': 0.55.7 '@unocss/preset-attributify': 0.55.7
'@unocss/preset-icons': 0.55.7 '@unocss/preset-icons': 0.55.7
'@unocss/preset-mini': 0.55.7 '@unocss/preset-mini': 0.55.7
@ -9483,7 +9483,7 @@ packages:
'@types/node': 20.6.0 '@types/node': 20.6.0
esbuild: 0.18.20 esbuild: 0.18.20
less: 4.2.0 less: 4.2.0
postcss: 8.4.29 postcss: 8.4.30
rollup: 3.29.2 rollup: 3.29.2
terser: 5.19.4 terser: 5.19.4
optionalDependencies: optionalDependencies: