strongloop / eslint-config-strongloop

Baseline eslint configuration for StrongLoop modules
Other
17 stars 6 forks source link

keyword-spacing wrong configuration #8

Closed wesleymilan closed 8 years ago

wesleymilan commented 8 years ago

On strongloop.json file at line 97 has the following line: "keyword-spacing": ["error"],

Eslint report the following error: Error: strongloop: Configuration for rule "keyword-spacing" is invalid: Severity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed "error").

Referenced from: /vagrant/www/jobseeker/.eslintrc at validateRuleOptions (/vagrant/www/jobseeker/node_modules/eslint/lib/config/config-validator.js:102:15) at /vagrant/www/jobseeker/node_modules/eslint/lib/config/config-validator.js:148:13 at Array.forEach (native) at Object.validate (/vagrant/www/jobseeker/node_modules/eslint/lib/config/config-validator.js:147:35) at load (/vagrant/www/jobseeker/node_modules/eslint/lib/config/config-file.js:390:19) at /vagrant/www/jobseeker/node_modules/eslint/lib/config/config-file.js:326:36 at Array.reduceRight (native) at applyExtends (/vagrant/www/jobseeker/node_modules/eslint/lib/config/config-file.js:309:28) at Object.load (/vagrant/www/jobseeker/node_modules/eslint/lib/config/config-file.js:395:22) at loadConfig (/vagrant/www/jobseeker/node_modules/eslint/lib/config.js:74:33) npm ERR! Test failed. See above for more details.

The right configuration param should be: "keyword-spacing": [2]

sam-github commented 8 years ago

@wesleymilan you are using eslint 2.x?