style(vscode): 调整 ESLint 配置
- 将 "source.fixAll.eslint" 设置从 true 改为 "explicit" - 修改了 settings.json 文件的格式,适当增加了空格和换行
This commit is contained in:
parent
060f137cfc
commit
66593aa8a3
20
.vscode/settings.json
vendored
20
.vscode/settings.json
vendored
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"editor.detectIndentation": false,
|
"editor.detectIndentation": false,
|
||||||
"editor.tabSize": 4,
|
"editor.tabSize": 4,
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true
|
"source.fixAll.eslint": "explicit"
|
||||||
},
|
},
|
||||||
"css.validate": false,
|
"css.validate": false,
|
||||||
"less.validate": false,
|
"less.validate": false,
|
||||||
"scss.validate": false
|
"scss.validate": false
|
||||||
}
|
}
|
16710
package-lock.json
generated
16710
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useDark, useWindowSize, useThrottleFn } from '@vueuse/core'
|
import { useDark, useWindowSize, useThrottleFn } from '@vueuse/core'
|
||||||
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
|
|
||||||
import useAppStore from './stores/modules/app'
|
import useAppStore from './stores/modules/app'
|
||||||
import useSettingStore from './stores/modules/setting'
|
import useSettingStore from './stores/modules/setting'
|
||||||
import { ScreenEnum } from './enums/appEnums'
|
import { ScreenEnum } from './enums/appEnums'
|
||||||
@ -8,7 +7,6 @@ const appStore = useAppStore()
|
|||||||
const settingStore = useSettingStore()
|
const settingStore = useSettingStore()
|
||||||
const elConfig = {
|
const elConfig = {
|
||||||
zIndex: 3000,
|
zIndex: 3000,
|
||||||
locale: zhCn
|
|
||||||
}
|
}
|
||||||
const isDark = useDark()
|
const isDark = useDark()
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
@ -112,8 +112,4 @@ module.exports = {
|
|||||||
10: '40px'
|
10: '40px'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
|
||||||
require('@tailwindcss/line-clamp') // 引入插件
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "@vue/tsconfig/tsconfig.node.json",
|
|
||||||
"include": ["vite.config.*"],
|
|
||||||
"compilerOptions": {
|
|
||||||
"composite": true,
|
|
||||||
"types": ["node"]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,23 +1,27 @@
|
|||||||
{
|
{
|
||||||
"extends": "@vue/tsconfig/tsconfig.web.json",
|
"extends": "@vue/tsconfig/tsconfig.json",
|
||||||
"include": [
|
"include": [
|
||||||
"global.d.ts",
|
"global.d.ts",
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
"src/**/*.vue",
|
"src/**/*.vue",
|
||||||
"components.d.ts",
|
"components.d.ts",
|
||||||
"auto-imports.d.ts",
|
"auto-imports.d.ts",
|
||||||
"typings/**/*.d.ts"
|
"typings/**/*.d.ts",
|
||||||
|
"vite.config.*"
|
||||||
],
|
],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"ignoreDeprecations": "5.0",
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"]
|
"@/*": [
|
||||||
}
|
"./src/*"
|
||||||
},
|
]
|
||||||
"references": [
|
},
|
||||||
{
|
"strict": true,
|
||||||
"path": "./tsconfig.config.json"
|
"composite": true,
|
||||||
}
|
"types": [
|
||||||
]
|
"@types/node"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user