@nrwl/linter:workspace-rule
Create a new Workspace Lint Rule.
Usage
nx generate workspace-rule ...
By default, Nx will search for workspace-rule
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/linter:workspace-rule ...
Show what will be generated without writing to disk:
nx g workspace-rule ... --dry-run
Examples
Create a new workspace lint rule called my-custom-rule:
nx g @nrwl/linter:workspace-rule my-custom-rule
Create a new workspace lint rule located at tools/eslint-rules/a/b/c/my-custom-rule.ts
:
nx g @nrwl/linter:workspace-rule --name=my-custom-rule --directory=a/b/c