question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration for rule "indent" is invalid:

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pixelwizcommented, Oct 21, 2017

I’m having the same problem with react-create-app How exactly did you fix it?

0reactions
chandrakantaScommented, Aug 5, 2015

Updating gulp-eslint fixed the issue. Thanx @mysticatea

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found