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 dab0308 commit e8f20fdCopy full SHA for e8f20fd
lib/rules/jsx-no-literals.js
@@ -242,11 +242,17 @@ module.exports = {
242
return false;
243
}
244
245
+ /**
246
+ * @typedef ElementNameFragment
247
+ * @property {string} name
248
+ * @property {string | undefined} compoundName
249
+ */
250
+
251
/**
252
* Gets the name of the given JSX element. Supports nested
253
* JSXMemeberExpressions. ie `<Namesapce.Component.SubComponent />`
254
* @param {ASTNode} node
- * @returns {{ name: string; compoundName: string | undefined } | undefined}
255
+ * @returns {ElementNameFragment | undefined}
256
*/
257
function getJSXElementName(node) {
258
if (node.openingElement.name.type === 'JSXIdentifier') {
0 commit comments