Usage
1nx generate create-rule ...
2
By 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 ...
2
Show what will be generated without writing to disk:
1nx g create-rule ... --dry-run
2
Options
category
Required
string
Accepted values:
consistency
, maintainability
, reliability
, security
The 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-reporter
The reporter of the rule.
description
string
The description of the rule.