Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MiniSuperDev opened this issue Aug 27, 2023 · 1 comment
Open

Comments

@MiniSuperDev
Copy link

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

@sindresorhus
Copy link
Member

You can either have XO in each package, or have it at the top-level and use the overrides feature to have separate config overrides for each package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants