ESLint - How to override extended file severity? Example: I can't disable indent errors. Base configuration:
"indent": [
"error",
"tab"
],
My eslintrc configuration:
module.exports = {
extends: "./baseConfig.js",
rules: {
"indent": [
"warn",
"tab"
],
}
};
but I'm still getting errors for the indent rule. I also tried:
rules: {
"indent": 0
}
but again got indent errors. what is wrong here?
location of project at /git/projectX
structure:
Project
index.js
package.json
eslintrc.js
baseConfig.js
You might just need to change eslintrc.js
to .eslintrc.js
.
Also do you have an eslintConfig
field in package.json? That could also interfere.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.