Description
I recently moved my repository to Lerna, using it, I decided to create a package to share my ESLint configuration across my other packages.
Locally, everything works properly, because when I install the package.json dependencies, a postinstall
hook runs lerna bootstrap
, which takes care to link my eslint-config-popper
package inside the node_modules
of all my others.
But when Code Climate tries to lint my project, it can't find my eslint-config-popper
and crashes.
I see 2 problems with the current situation:
- Seems like the linting step of Code Climate doesn't install the
eslint-*
dependencies to make ESLint use them later, but only supports a small set of "certified" packages. - Code Climate doesn't support monorepos (managed by Lerna), so it will never know that I have multiple packages in the same repository
If it helps, this is the PR where I added Lerna:
floating-ui/floating-ui#314
This is a sample .babelrc.js:
https://github.com/FezVrasta/popper.js/pull/314/files#diff-da5604fca9fbb9419c26963ae4e32a07
This is my eslint-config-popper:
https://github.com/FezVrasta/popper.js/pull/314/files#diff-129e262bf44c2d16b27ebc7c87c047a1