Skip to content

Support for Lerna #288

Closed
Closed
@FezVrasta

Description

@FezVrasta

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:

  1. 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.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions