Skip to content

Commit a52c3ee

Browse files
committed
rm .reverse()
1 parent 26e70a5 commit a52c3ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/isolated-functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const create = context => {
9797
}
9898

9999
if (options.selectors.length > 0) {
100-
const ancestors = sourceCode.getAncestors(node).reverse();
100+
const ancestors = sourceCode.getAncestors(node);
101101
const matchedSelector = options.selectors.find(selector => esquery.matches(node, parseEsquerySelector(selector), ancestors));
102102
if (matchedSelector) {
103103
return `matches selector ${JSON.stringify(matchedSelector)}`;

0 commit comments

Comments
 (0)