Open ferferga opened 1 month ago
I have a hard time understanding what it is that doesn’t work.
Can you maybe add a screenshot or something where you show what’s wrong or missing?
@voxpelli I was able to better triage the issue and create a minimal reproduction: https://stackblitz.com/edit/vitejs-vite-9abzaz
cd packages/configs
and run npm run lint:inspect
packages/main
directory and run npm run lint:inspect
there. The config inspector will fail to load with the following error, since the base
rules are being imported from the monorepo:
It looks like the issue exists when importing .ts
files from node_modules
in monorepo setups. Similar to what happens in Vite. Hence, the workarounds listed there are also applicable to this project
The following structure is publicily available at https://github.com/jellyfin/jellyfin-vue
Steps to reproduce
cd frontend && npm run lint:inspect
Description
This an overview of the setup
@jellyfin-vue/configs
in my case) where TypeScript modules export factory functions for rule configs.frontend/eslint.config.ts
, working perfectly with ESLint but not with the inspector.