I'm running polyjuice globally from the CLI on this repo's .jshintrc file and am getting an error when I try and run ESLint:
➜ polyjuice git:(master) ✗ polyjuice .jshintrc > .eslintrc
➜ polyjuice git:(master) ✗ eslint .
/Users/pdehaan/.npm-packages/lib/node_modules/eslint/lib/config-validator.js:88
throw new Error(message.join(""));
^
Error: /Users/pdehaan/dev/github/polyjuice/.eslintrc:
Configuration for rule "max-depth" is invalid:
Value "3" must be an enum value.
at validateRuleOptions (/Users/pdehaan/.npm-packages/lib/node_modules/eslint/lib/config-validator.js:88:15)
at /Users/pdehaan/.npm-packages/lib/node_modules/eslint/lib/config-validator.js:101:13
at Array.forEach (native)
at Object.validate (/Users/pdehaan/.npm-packages/lib/node_modules/eslint/lib/config-validator.js:100:35)
at loadConfig (/Users/pdehaan/.npm-packages/lib/node_modules/eslint/lib/config.js:107:19)
at getLocalConfig (/Users/pdehaan/.npm-packages/lib/node_modules/eslint/lib/config.js:243:23)
at Config.getConfig (/Users/pdehaan/.npm-packages/lib/node_modules/eslint/lib/config.js:371:22)
at processText (/Users/pdehaan/.npm-packages/lib/node_modules/eslint/lib/cli-engine.js:181:27)
at processFile (/Users/pdehaan/.npm-packages/lib/node_modules/eslint/lib/cli-engine.js:224:12)
at /Users/pdehaan/.npm-packages/lib/node_modules/eslint/lib/cli-engine.js:320:26
I'm running polyjuice globally from the CLI on this repo's .jshintrc file and am getting an error when I try and run ESLint:
And the generated .eslintrc file is:
So the
max-depth
andmax-params
values aren't getting set correctly (should probably be"max-depth: [2, 3]
andmax-params: [2, 4]
respectively.