Skip to content

ESLint does not support plugins as dependencies of shared configs #2

@Weetbix

Description

@Weetbix

Currently:

  • Try adding eslint-config-vivy to an NPM project
  • If/when the eslint-config-vivy dependency gets installed, the plugins can be installed in the sub node modules folder, ie:
    • <root>/node_modules/eslint-config-vivy/node_modules/eslint-plugin-prettier
  • Then running ESLint breaks as it cannot find the plugin:
Oops! Something went wrong! :(

ESLint: 5.16.0.
ESLint couldn't find the plugin "eslint-plugin-prettier". This can happen for a couple different reasons:

This is discussed here: eslint/eslint#3458
and RFC here:
eslint/rfcs#5

Note: this is not an issue with yarn most of the time due to the flatter hierachy.

One option is to add these plugins as peer dependencies, bu that kind of sucks.
I think we should just leave this for now as internally we are using yarn

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