Skip to content

Commit

Permalink
docs(core): create conformance rule recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacplmann committed Dec 18, 2024
1 parent 3c88951 commit 1df46cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Therefore, in practice, writing your local conformance rules in an Nx generated

To write your own conformance rule, run the `@nx/powerpack-conformance:create-rule` generator and answer the prompts.

```text {% command="nx g @nx/powerpack-conformance:create-rule" path="/" %}
```text {% command="nx g @nx/powerpack-conformance:create-rule" %}
NX Generating @nx/powerpack-conformance:create-rule
✔ What is the name of the rule? · local-conformance-rule-example
Expand Down Expand Up @@ -51,7 +51,7 @@ To enable the rule, you need to register it in the `nx.json` file.
"conformance": {
"rules": [
{
"rule": "./packages/my-plugin/local-conformance-rule.ts"
"rule": "./packages/my-plugin/local-conformance-rule/index.ts"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Therefore, in practice, writing your local conformance rules in an Nx generated

To write your own conformance rule, run the `@nx/powerpack-conformance:create-rule` generator and answer the prompts.

```text {% command="nx g @nx/powerpack-conformance:create-rule" path="/" %}
```text {% command="nx g @nx/powerpack-conformance:create-rule" %}
NX Generating @nx/powerpack-conformance:create-rule
✔ What is the name of the rule? · local-conformance-rule-example
Expand Down Expand Up @@ -51,7 +51,7 @@ To enable the rule, you need to register it in the `nx.json` file.
"conformance": {
"rules": [
{
"rule": "./packages/my-plugin/local-conformance-rule.ts"
"rule": "./packages/my-plugin/local-conformance-rule/index.ts"
}
]
}
Expand Down

0 comments on commit 1df46cc

Please sign in to comment.