eslint-config-standard: Configuration for rule "no-labels" is invalid
eslint version: 1.10.3 eslint-config-standard version: 5.0.0 eslint-plugin-promise version: 1.0.8 eslint-plugin-standard version: 1.3.1
Full error:
Error: standard:
Configuration for rule "no-labels" is invalid:
Value "2,[object Object]" has more items than allowed.
Referenced from: /private/tmp/immutable-redux/.eslintrc
at validateRuleOptions (/private/tmp/immutable-redux/node_modules/eslint/lib/config/config-validator.js:102:15)
at /private/tmp/immutable-redux/node_modules/eslint/lib/config/config-validator.js:148:13
at Array.forEach (native)
at Object.validate (/private/tmp/immutable-redux/node_modules/eslint/lib/config/config-validator.js:147:35)
at load (/private/tmp/immutable-redux/node_modules/eslint/lib/config/config-file.js:390:19)
at /private/tmp/immutable-redux/node_modules/eslint/lib/config/config-file.js:326:36
at Array.reduceRight (native)
at applyExtends (/private/tmp/immutable-redux/node_modules/eslint/lib/config/config-file.js:309:28)
at Object.load (/private/tmp/immutable-redux/node_modules/eslint/lib/config/config-file.js:395:22)
at loadConfig (/private/tmp/immutable-redux/node_modules/eslint/lib/config.js:74:33)
Wasn’t seeing this issue with eslint-config-standard 4.x.x…
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (7 by maintainers)
+1 (sorry that Github does not have a simple +1 button)
@chibicode Thanks for sharing that info. Should help future folks coming in from Google 😃
I had the exact same issue with Atom editor:
Turns out that the issue was that I was using global eslint installation, which was on
1.x. I fixed it by going tolinter-eslint’s setting and set it to use local eslint installation: