build(projects): update config

This commit is contained in:
Soybean 2022-05-10 22:07:53 +08:00
parent 60f912508b
commit a0c405dadd
3 changed files with 50 additions and 53 deletions

View File

@ -154,7 +154,6 @@ module.exports = {
ignorePropertyModificationsFor: ['state', 'acc', 'e'] ignorePropertyModificationsFor: ['state', 'acc', 'e']
} }
], ],
'no-plusplus': 'off',
'no-shadow': 'off', 'no-shadow': 'off',
'no-unused-vars': 'off', 'no-unused-vars': 'off',
'no-use-before-define': 'off', 'no-use-before-define': 'off',
@ -175,7 +174,7 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-shadow': 'error', '@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true, varsIgnorePattern: '^_' }], '@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true, varsIgnorePattern: '^_' }],
'@typescript-eslint/no-use-before-define': ['warn', { classes: true, functions: false, typedefs: false }] '@typescript-eslint/no-use-before-define': ['error', { classes: true, functions: false, typedefs: false }]
}, },
overrides: [ overrides: [
{ {

View File

@ -30,7 +30,6 @@
"vue.volar", "vue.volar",
"vue.vscode-typescript-vue-plugin", "vue.vscode-typescript-vue-plugin",
"dariofuzinato.vue-peek", "dariofuzinato.vue-peek",
"wscats.vue",
"antfu.unocss" "antfu.unocss"
] ]
} }

99
.vscode/settings.json vendored
View File

@ -1,62 +1,23 @@
{ {
"editor.quickSuggestions": { "editor.bracketPairColorization.enabled": true,
"strings": true
},
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "One Dark Pro",
"editor.tabSize": 2,
"editor.fontLigatures": true,
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.eslint": true "source.fixAll.eslint": true
}, },
"editor.bracketPairColorization.enabled": true, "editor.fontLigatures": true,
"editor.formatOnSave": false,
"editor.guides.bracketPairs": "active", "editor.guides.bracketPairs": "active",
"git.enableSmartCommit": true, "editor.quickSuggestions": {
"path-intellisense.mappings": { "strings": true
"@": "${workspaceFolder}/src",
"~@": "${workspaceFolder}/src",
}, },
"editor.tabSize": 2,
"files.associations": {
"*.env.*": "dotenv"
},
"git.enableSmartCommit": true,
"gutterpreview.paths": { "gutterpreview.paths": {
"@": "/src", "@": "/src",
"~@": "/src" "~@": "/src"
}, },
"terminal.integrated.cursorStyle": "line",
"files.associations": {
"*.env.*": "dotenv"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"terminal.integrated.fontSize": 14,
"terminal.integrated.fontWeight": 500,
"i18n-ally.displayLanguage": "zh",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "johnsoncodehk.volar"
},
"terminal.integrated.tabs.enabled": true,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"vue3snippets.enable-compile-vue-file-on-did-save-code": false,
"editor.formatOnSave": false,
"material-icon-theme.activeIconPack": "angular", "material-icon-theme.activeIconPack": "angular",
"material-icon-theme.files.associations": {}, "material-icon-theme.files.associations": {},
"material-icon-theme.folders.associations": { "material-icon-theme.folders.associations": {
@ -72,5 +33,43 @@
"request": "api", "request": "api",
"adapter": "middleware" "adapter": "middleware"
}, },
"unocss.root": "src" "path-intellisense.mappings": {
"@": "${workspaceFolder}/src",
"~@": "${workspaceFolder}/src",
},
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.fontSize": 14,
"terminal.integrated.fontWeight": 500,
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "One Dark Pro",
"unocss.root": "src",
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"i18n-ally.displayLanguage": "zh",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "Vue.volar"
},
"terminal.integrated.tabs.enabled": true,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
}
} }