Foreword:
The eslint check in the project is a great tool, but in informal occasions or in some cases, it will bring us a lot of inconvenience. Here is how to turn off his eslint check after creating a new project. (Official projects are not recommended to be closed, because a good habit is to start with the specification of each line of code)
method:
Open our .eslintrc.js file, the '@ vue / standard' comments, and then the service restart , restart, restart, important things to say three times
.eslintrc.js
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/vue3-essential',
// '@vue/standard'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}