Skip to content

Commit c734901

Browse files
committed
Add JSXText support to jsx-curly-brace-presence
1 parent 3762258 commit c734901

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/rules/jsx-curly-brace-presence.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ module.exports = {
250250
if (shouldCheckForMissingCurly(node.parent, userConfig)) {
251251
reportMissingCurly(node);
252252
}
253+
},
254+
255+
JSXText: node => {
256+
if (shouldCheckForMissingCurly(node.parent, userConfig)) {
257+
reportMissingCurly(node);
258+
}
253259
}
254260
};
255261
}

0 commit comments

Comments
 (0)