@nx/eslint:workspace-rule
Create a new Workspace Lint Rule.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Create a new Workspace Lint Rule.
This command will generate a new workspace lint rule called my-custom-rule
. The new rule will be generated in tools/eslint-rules/rules
folder:
❯
nx g @nx/eslint:workspace-rule my-custom-rule
1nx generate workspace-rule ...
2
By default, Nx will search for workspace-rule
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/eslint:workspace-rule ...
2
Show what will be generated without writing to disk:
1nx g workspace-rule ... --dry-run
2
rules
Create the rule under this directory within tools/eslint-rules/
(can be nested).
The name of the new rule.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!