Run nx lint --fix
in generator
#30336
jochman
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I have a monorepo with a sync generator (or, any other generator).
after running a generator - I cannot check if the output file is actually sync as I'm using
nx affected --fix
which changes the files.I can only run format through the sync generator.
how can I overcome it? How can I run lint on the generated files (as done with
formatFiles(tree)
).example for usage:
of course, I can understand that it involved on somehow calling
nx affected lint --fix
. But I still cannot do that as part of the generator.Beta Was this translation helpful? Give feedback.
All reactions