neutrinojs / neutrino

Create and build modern JavaScript projects with zero initial configuration.
https://neutrinojs.org
Mozilla Public License 2.0
3.95k stars 213 forks source link

lerna monorepo webstorm ESLint -> ESLint not working in editor #1559

Closed Ognian closed 4 years ago

Ognian commented 4 years ago

Bug -> https://github.com/neutrinojs/neutrino/blob/master/packages/neutrino/index.js#L12 is using process.cwd() inside the require if eslint is started from the module root -> ok BUT if webstorm starts eslint for the editor it uses the project root and not the module root for this therefore it fails

Actually I'm not sure what should be the correct solution

Any Ideas? Thanks Ognian

Ognian commented 4 years ago

At the moment I think that this is more a webstorm bug: https://youtrack.jetbrains.com/issue/WEB-44936