Closed larsthorup closed 9 years ago
:+1: Also experiencing this issue.
I went ahead and updated the eslint dependency in ~/.nvm/v0.12.5/lib/node_modules/semistandard/node_modules/standard-engine/package.json
. Works just fine. It looks like standard-engine is just behind a bit on its eslint dependency. It's pinned to a specific commit hash for some reason. I hope Flet can comment on that.
Here is a PR: https://github.com/Flet/standard-engine/pull/7
Thanks, I've landed that PR and published a new version of standard-engine
. Could one or both of you re-install semistandard and try it again?
Awesome. Looks great, and package.json is cleaned up!
Works. Thanks!
I get this error after re-installing semistandard with
rm node_modules/semistandard && npm install semistandard
:TypeError: Error while loading rule 'spaced-comment': Cannot read property 'length' of undefined at module.exports (C:\r\larsthorup\amaze\node_modules\semistandard\node_modules\standard-engine\node_modules\eslint\lib\rules\spaced-comment.js:26:28) at C:\r\larsthorup\amaze\node_modules\semistandard\node_modules\standard-engine\node_modules\eslint\lib\eslint.js:629:32 at Array.forEach (native) at EventEmitter.module.exports.api.verify (C:\r\larsthorup\amaze\node_modules\semistandard\node_modules\standard-engine\node_modules\eslint\lib\eslint.js:620:16) at processText (C:\r\larsthorup\amaze\node_modules\semistandard\node_modules\standard-engine\node_modules\eslint\lib\cli-engine.js:200:27) at processFile (C:\r\larsthorup\amaze\node_modules\semistandard\node_modules\standard-engine\node_modules\eslint\lib\cli-engine.js:225:12) at C:\r\larsthorup\amaze\node_modules\semistandard\node_modules\standard-engine\node_modules\eslint\lib\cli-engine.js:317:26 at walk (C:\r\larsthorup\amaze\node_modules\semistandard\node_modules\standard-engine\node_modules\eslint\lib\util\traverse.js:81:9) at C:\r\larsthorup\amaze\node_modules\semistandard\node_modules\standard-engine\node_modules\eslint\lib\util\traverse.js:102:9 at Array.forEach (native)
It looks like semistandard will use the latest eslint (0.24.0) but the embedded standard-engine will use a specific commit off of 0.22.1, as
npm ls eslint
gives:If I update node_modules/semistandard/node_modules/standard-engine/node_modules/eslint to a copy of the one in node_modules/semistandard/node_modules/eslint this error goes away.
To reproduce:
Let me know if you need me to assemble a smaller repro scenario.