Skip to content

Commit c45a989

Browse files
jrmltybiquitous
andauthored
Update lib/rules/no-invalid-position-declaration/index.mjs
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
1 parent 4c27d85 commit c45a989

File tree

1 file changed

+1
-1
lines changed
  • lib/rules/no-invalid-position-declaration

1 file changed

+1
-1
lines changed

lib/rules/no-invalid-position-declaration/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const rule = (primary, secondaryOptions) => {
6161
if (nestingSupportedAtKeywords.has(atRuleName)) {
6262
const parentRule = findNodeUpToRoot(
6363
decl,
64-
(node) => node.type === 'rule' || isIgnoredAtRule(node),
64+
(node) => isRule(node) || isIgnoredAtRule(node),
6565
);
6666

6767
if (parentRule) return;

0 commit comments

Comments
 (0)