fi3ework / vite-plugin-checker

💬 Vite plugin that provide checks of TypeScript, ESLint, vue-tsc, Stylelint and more.
https://vite-plugin-checker.netlify.app
MIT License
1k stars 87 forks source link

Multiple instances of vite-plugin-checker (one for the frontend and one for the backend) #274

Open ponahoum opened 1 year ago

ponahoum commented 1 year ago

Is your feature request related to a problem? Please describe.

We have a monorepo with a /frontend and /backend folder. Of course, vite-plugin-checker is installed and setup within /frontend. I'd like to have multiple instances of vue checker to have both my frontend and backend lint errors to show when opening my web browser. This would be extremely valuable for my project development approach, which is fullstack

Describe the solution you'd like

Either:

Describe alternatives you've considered

I've tried using the concurrent package to run both eslint commands as well as the && operator (to run eslint command twice, one for each folder) but it fails for some obscure reason. I feel like the eslint argument is parsed in a way that doesn't allow to put any kind of command in the "lintCommand" option.

Additional context

No response

Validations

jaerod95 commented 1 year ago

+1 To this, I also would like to be able to run multiple instances of the typescript checker to typecheck two different builds needed for running a figma plugin. I noticed there were some changes in the proposed 0.7 release, would those changes make this possible?

kovalewvladimir commented 1 week ago

I have a similar situation. Here's the structure:

apps/
`-- example
    |-- eslint.config.js
    |-- package.json
    |-- src
    |-- tsconfig.json
    `-- vite.config.ts
libs/
`-- name-lib1
    |-- eslint.config.js
    |-- package.json
    |-- src
    |-- tsconfig.json
    `-- vite.config.ts

Development mode starts from apps/example. But at the same time, I would like ESLint to show errors in the library because they are being developed simultaneously. Please advise on what I should look into, if this is possible.