mantoni / eslint_d.js

Makes eslint the fastest linter on the planet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to load plugin using Turborepo

MaximeCap opened this issue · comments

Hello @mantoni,
I try to configure my Nvim configuration using Conform and Eslint_d as a parser of my typescript project

I try different fixes that come from the resolved issues but nothing seems to work.

I have a monorepo using PNPM and Turbo.
The project looks like that

|_ packages
|        |_ shared-eslint conf
|_ apps
         |_ backend
                     |_ .eslintrc.cjs using the shared-eslint conf

eslint_d seems to detect the eslint configure but cannot load plugins in my case @typescript-eslint
Screenshot 2024-03-06 at 11 49 23

When you're experimenting with configs, you might need to call eslint_d restart. Sometimes it doesn't pick up plugin changes. Let me know if that helps.

Hey! I got his issue too.

My situation is similar. I have a monorepo built with Turborepo also I use yarn as my package manager.

i get the error in one my plugins which reads:
Error: Failed to load plugin 'jsdoc' declared in '.eslintrc': Cannot find module 'eslint'

when i run the same command with a normal eslint everything works just fine. I will have to switch to normal eslint for the time being