Replies: 4 comments
-
@dmnd This sounds quite useful, though is Turborepo the place to do it? It feels a little bit like a "linting/pre-commit" hook type check? I might actually see if I can knock a script up later, as I'd value this in our project. |
Beta Was this translation helpful? Give feedback.
-
Maybe the turbo eslint plugin is a better home for it? Not sure though as this is kinda circular. In my monorepo lint is global so it'd work, but I bet others lint by package. Where would you put it? |
Beta Was this translation helpful? Give feedback.
-
Shouldn't this still require a folder filter or an array of package where you want to run To me, this sounds more like a specific user behaviour rather than turbo repo responsibility. |
Beta Was this translation helpful? Give feedback.
-
Monorepos are frequently used to increase consistency across projects. Also, lint is just an example. |
Beta Was this translation helpful? Give feedback.
-
Describe the feature you'd like to request
I want to ensure that all packages in my monorepo implement a certain script.
Describe the solution you'd like
yarn turbo run lint
is close, but it ignores packages that don't implement lint.yarn turbo run --ensure lint
could fail if a package doesn't implement lint.Describe alternatives you've considered
yarn workspaces run lint
runs lint in all packages, and fails if a package doesn't implement lint. But it's so slow ;)Beta Was this translation helpful? Give feedback.
All reactions