[HELP] How to Disabled Eslint
How to disable eslint ? because error of "Component name "Content" should always be multi-word vue/multi-word-component-name" this is annoying for me. Just delete eslint on package.json or ? btw i use phpstrom and i have turned off eslint in php strom, but eslint still appears in the browser
Replies (2)
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Hi Gusti,
Thank you for contacting our support.
I listed below ways on how you can disable eslint in your project.
- To disable Eslint for one line you can put a comment above the line you want to disable Eslint check.
// eslint-disable-next-line
- To disable Eslint for the whole file you can write a comment below on top of the file.
/* eslint-disable */
- To disable Eslint for one specific file or folder you can include it to .eslintignore.
.eslintignore
/src/components
- Same way if you want to disable Eslint in the entire project just set the path below.
.eslintignore
**/*
- To disable some specific rule check you can "off" it in .eslintrc.js.
.eslintrc.js
module.exports = {
rules: {
"no-console": "off",
},
}
no-console rule will disable warnings when using console.log, you can find all available rules in Eslint and Vue Eslint plugin docs.
In your case, you might want to disablevue/multi-word-component-names.
Regards,
Lauris Stepanovs,
Keenthemes Support Team