Skip to content

Create a new conformance rule

Usage:

nx g @nx/conformance:create-rule [options]
OptionsTypeDescriptionDefault
categoryconsistency, maintainability, reliability, or security [required]The category of the rule
directorystring [required]A directory where the rule directory is created.{projectRoot}/src/rules
namestring [required]The name of the rule.
descriptionstringThe description of the rule.

Generate a Nx workspace with a working conformance rule

Usage:

npx create-nx-workspace@latest --preset=@nx/conformance