ricardofbarros / linter-js-standard

Atom linter plugin for JavaScript, using JavaScript Standard Style
https://atom.io/packages/linter-js-standard
MIT License
99 stars 48 forks source link

no-callback-literal #211

Closed Friph closed 6 years ago

Friph commented 7 years ago

Hello,

Could you tell me where is the problem? It's on every first line: 2 Examples: bildschirmfoto 2017-11-10 um 11 13 57 bildschirmfoto 2017-11-10 um 11 14 43

And the linter error:

bildschirmfoto 2017-11-10 um 11 15 22

Thanks!

sonicdoe commented 7 years ago

Do you have standard locally installed? Does this error also occur when running standard from the command line?

Friph commented 6 years ago

Yes the error also occurred with the local installation in node_modules/.bin/standard running from the command line.

The issue was apparently that we had an old version of standard installed, because yarn did not correctly update the dependencies. A related issue is https://github.com/standard/snazzy/issues/16

Thanks for the fast response and the heads up and sorry for the delayed answer.

TL;DR; We rm -rf node_modules/ and reinstall with ~yarn install or~ (1) npm install.

(1) - yarn seems to insist on using an older version. Probably this could be worked around by deleting yarn.lock but in our case it was easier to just use npm to fix the problem.