Skip to content

Commit

Permalink
fix: change embedded rule
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed Jul 10, 2023
1 parent 09c2ab4 commit 77a722b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/guide/rule-config/atomic-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ const foo = () => {
```
The first step to compose a rule is to find the target. In this case, we can first use kind: `arrow_function` to find function node. Then we can use other rules to filter candidate nodes that does have return type.

Another trick to write cleaner rule is to use embedded rule to augment atomic rule.
Please refer to [embedded rule](/guide/rule-config/composite-rule.html#embedded-rules) for more details.
Another trick to write cleaner rule is to use sub-rules as fields.
Please refer to [composite rule](/guide/rule-config/composite-rule.html#combine-different-rules-as-fields) for more details.

0 comments on commit 77a722b

Please sign in to comment.