Skip to content

Commit

Permalink
Docs: Show valid nested example for no-hooks-from-ancestor-modules
Browse files Browse the repository at this point in the history
Ref #230.
  • Loading branch information
Krinkle committed May 13, 2022
1 parent 9382c93 commit 4d07af5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/rules/no-hooks-from-ancestor-modules.md
Expand Up @@ -33,6 +33,12 @@ The following patterns are not warnings:
QUnit.module("example module", function(hooks) {
hooks.beforeEach(function() {});
});

QUnit.module("outer module", function() {
QUnit.module("inner module", function(hooks) {
hooks.beforeEach(function() {});
});
});
```

## When Not To Use It
Expand Down

0 comments on commit 4d07af5

Please sign in to comment.