I recently update the laster version vue-cli 3
After creating a project and run it, it will show the message
//eslint-disable-next-line
to ignore the next line./* eslint-disable */
to ignore all warnings in a file.but in Which file should I put those comments?
I only have a package.json / package-lock.json and .gitignore on my root folder
Do I have to create a .eslintrc?
To disable ESLint in Vue CLI, we just remove the @vue/cli-plugin-eslint package from the Vue CLI project. to remove the @vue/cli-plugin-eslint package, which will disable ESLint in the Vue CLI project.
disable warnings eslint Use /* eslint-disable */ to ignore all warnings in a file. You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file.
You can remove the eslint
rule by adding a vue.config.js
file to your project with the following content.
module.exports = {
chainWebpack: config => {
config.module.rules.delete('eslint');
}
}
Alternatively if your project has a config\index.js
file you can disable eslint by adding the following line.
useEslint: false,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With