Usage
1nx generate create-rule ...
2By default, Nx will search for create-rule in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/powerpack-conformance:create-rule ...
2Show what will be generated without writing to disk:
1nx g create-rule ... --dry-run
2Options
category
Required
string
Accepted values:
consistency, maintainability, reliability, securityThe category of the rule.
directory
Required
string
A directory where the rule directory is created.
name
Required
string
The name of the rule.
reporter
Required
string
Accepted values:
project-reporter, project-files-reporter, non-project-files-reporterThe reporter of the rule.
description
string
The description of the rule.