chore(eslint): resolve eslint wearning

This commit is contained in:
wangchao 2022-06-24 15:11:51 +08:00
parent d584ab4479
commit 7ede02f009
3 changed files with 10 additions and 2 deletions

View File

@ -41,4 +41,13 @@ module.exports = {
'@typescript-eslint/consistent-type-imports': 'off', '@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/no-unused-vars': 'off', '@typescript-eslint/no-unused-vars': 'off',
}, },
overrides: [
{
files: ["*.html"],
rules: {
// https://github.com/vuejs/eslint-plugin-vue/issues/1355
"vue/comment-directive": "off",
},
},
],
} }

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh" . "$(dirname -- "$0")/_/husky.sh"
npm run lint yarn run lint

View File

@ -64,7 +64,6 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
server: { server: {
host: true, host: true,
port: 3000, port: 3000,
open: true,
proxy: { proxy: {
'/api': { '/api': {
// backend url // backend url