We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a0fd5 commit 0ddceffCopy full SHA for 0ddceff
index.js
@@ -204,6 +204,14 @@ const rules = {
204
visitorKeys,
205
(current, ancestors) => {
206
if (
207
+ current.type === 'JSXElement' &&
208
+ current.openingElement.attributes.find(
209
+ (attributeNode) =>
210
+ attributeNode.name?.name === 'data-component',
211
+ )
212
+ ) {
213
+ throw DONE_WITH_SUBTREE;
214
+ } else if (
215
current.type === 'JSXElement' &&
216
excludeComponentNames.every(
217
(regex) =>
0 commit comments