Vue3 は構文チェックを終了します (実際には効果的)
最初の方法
新しい vue.config.js ファイルを作成し、ファイルにコードを入力します。
module.exports = {
// 关闭eslint校验
devServer: {
overlay: {
warnings: true,
errors: true
}
},
lintOnSave: false
}
しかし、この方法を試してみましたが、うまくいかないようです。
プロテストの効果的な方法
.eslintrc.js ファイルの「@vue/standard」をコメントアウトするだけです。
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/vue3-essential',
// '@vue/standard',
'@vue/typescript/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/multi-word-component-names': 'off'
}
}