Configuration for rule "indent" is invalid:
See original GitHub issueI have following indent rule in my .eslintrc
file.
"indent": [2, 2, {"SwitchCase": 1}]
Version: v1.0.0
And it shows error:
`/home/chandra/scrollback/node_modules/gulp-eslint/node_modules/eslint/lib/config-validator.js:88
throw new Error(message.join(""));`
^
`Error: /home/chandra/scrollback/.eslintrc:
Configuration for rule "indent" is invalid:
Value "data["2"].SwitchCase" has additional properties.`
`at validateRuleOptions (/home/chandra/scrollback/node_modules/gulp-eslint/node_modules/eslint/lib/config-validator.js:88:15)
at /home/chandra/scrollback/node_modules/gulp-eslint/node_modules/eslint/lib/config-validator.js:101:13
at Array.forEach (native)
at Object.validate (/home/chandra/scrollback/node_modules/gulp-eslint/node_modules/eslint/lib/config-validator.js:100:35)
at loadConfig (/home/chandra/scrollback/node_modules/gulp-eslint/node_modules/eslint/lib/config.js:99:19)
at getLocalConfig (/home/chandra/scrollback/node_modules/gulp-eslint/node_modules/eslint/lib/config.js:225:23)
at Config.getConfig (/home/chandra/scrollback/node_modules/gulp-eslint/node_modules/eslint/lib/config.js:363:22)
at processText (/home/chandra/scrollback/node_modules/gulp-eslint/node_modules/eslint/lib/cli-engine.js:183:27)
at CLIEngine.executeOnText (/home/chandra/scrollback/node_modules/gulp-eslint/node_modules/eslint/lib/cli-engine.js:361:26)
at verify (/home/chandra/scrollback/node_modules/gulp-eslint/index.js:19:17)`
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Configuration for rule "indent" is invalid: Value "[object Object ...
Configuration for rule "indent" is invalid: Value "[object Object]" should NOT have additional properties. #109.
Read more >Configuration for rule "indent" is invalid: Value "[object Object ...
The yarn build started failing as soon as I added eslint. I am not sure what is causing the issue. ERROR: Module build...
Read more >eslint/eslint - Gitter
Configuration for rule "indent" is invalid: Value {"SwitchCase":1,"ObjectExpression":1,"ClassBody":1} should NOT have additional properties.
Read more >indent - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >[Solved]-Configuration for rule "indent" is invalid - appsloveworld
[Solved]-Configuration for rule "indent" is invalid: Value "[object Object]" should NOT have additional properties-node.js · Related Query · More Query from same ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m having the same problem with react-create-app How exactly did you fix it?
Updating
gulp-eslint
fixed the issue. Thanx @mysticatea