From 4d07af59cfd96fcfd5e202254c41bee5189ae134 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 13 May 2022 19:43:20 +0100 Subject: [PATCH] Docs: Show valid nested example for `no-hooks-from-ancestor-modules` Ref https://github.com/platinumazure/eslint-plugin-qunit/issues/230. --- docs/rules/no-hooks-from-ancestor-modules.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/rules/no-hooks-from-ancestor-modules.md b/docs/rules/no-hooks-from-ancestor-modules.md index 4f400d31..4e870c55 100644 --- a/docs/rules/no-hooks-from-ancestor-modules.md +++ b/docs/rules/no-hooks-from-ancestor-modules.md @@ -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