xo icon indicating copy to clipboard operation
xo copied to clipboard

In a monorepo with turborepo and typescript which is the best setup?

Open MiniSuperDev opened this issue 10 months ago • 1 comments

For example in a turborepo with the following structure

package.json/
apps/
├─ react-native-app/
│  ├─ package.json
├─ next-js-app/
│  ├─ package.json
├─ cli-app/
│  ├─ package.json
├─ nest-js-app/
│  ├─ package.json
packages/
├─ components/
│  ├─ package.json
├─ core/
│  ├─ package.json
turbo.json

Without XO, previously I had an eslint package for each type of project, for example eslint-config-base, eslint-config-react eslint-config-react-native, etc.

And then I use the corresponding package extending it in the eslintrc.js of each package.


With XO what is the best way to use it in the monorepo? Shouldn't I have specific lints for react native, vue or next anymore? or should I extend it in each project, or there is way to have all the rules for all type of projects?

Thank you

MiniSuperDev avatar Aug 27 '23 06:08 MiniSuperDev