Install Eslint config airbnb dependencies with 'pnpm' in Astro React project

246 Views Asked by At

We are using pnpm as our package manager inside our Astro React project.

I need to setup Eslint config Airbnb.

In the readme it says use npx install-peerdeps --dev eslint-config-airbnb to install all dependencies.

How do I do that with pnpm?

1

There are 1 best solutions below

0
Slava Sobolev On

Actually you can use pnpm built in functionality to install dependency with peers.

Related question

Execute this in your project directory.

pnpm config set auto-install-peers true --location project

It will create .npmrc file with option auto-install-peers=true Then delete pnpm-lock.yaml and run

pnpm add -D eslint-config-airbnb
pnpm i

To install dependencies with peers