jungsoft/eslint-config

Peer-dependencies not being installed

Closed this issue · 3 comments

Steps to reproduce

  1. Create a react app
  2. Install eslint dependencies - yarn add eslint @jungsoft/eslint-config
  3. Create .eslintrc file, extending the @jungsoft/eslint-config/react shareable config
  4. Run yarn eslint .ts,.tsx --fix

Working as expected, it's a specific case from a project

Peer dependencies being installed:

image

image

There are some projects that have different behavior when installing the shareable config. Yarn doesn't recognize the peer-dependencies.

Yarn doesn't install the peer-dependencies in the development environment, by default.

According to this PR yarnpkg/yarn#4689, it would work by installing the dependencies using the --peer flag.