Skip to content

Commit 25bf145

Browse files
committed
Remove code needed for @stylelint/postcss-css-in-js syntax
1 parent b2348fc commit 25bf145

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

lib/getContainingNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = function getContainingNode(node) {
88
return node.parent;
99
}
1010

11-
// @stylelint/postcss-css-in-js: declarations are children of Root node
11+
// postcss-html `style` attributes: declarations are children of Root node
1212
if (node.parent?.document?.nodes?.some((item) => item.type === 'root')) {
1313
return node.parent;
1414
}

lib/isAllowedToProcess.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,5 @@ module.exports = function isAllowedToProcess(node, options) {
2323
}
2424
}
2525

26-
// @stylelint/postcss-css-in-js only
27-
if (node.nodes.some((item) => item.type === 'literal')) {
28-
return false;
29-
}
30-
3126
return true;
3227
};

0 commit comments

Comments
 (0)