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 e8d431f commit 74baea5Copy full SHA for 74baea5
lib/rules/jsx-props-no-multi-spaces.js
@@ -98,7 +98,7 @@ module.exports = {
98
}
99
100
function containsGenericType(node) {
101
- const nodeTypeParams = node.typeParameters;
+ const nodeTypeParams = node.typeArguments || node.typeParameters;
102
if (typeof nodeTypeParams === 'undefined') {
103
return false;
104
@@ -109,7 +109,7 @@ module.exports = {
109
function getGenericNode(node) {
110
const name = node.name;
111
if (containsGenericType(node)) {
112
- const type = node.typeParameters;
+ const type = node.typeArguments || node.typeParameters;
113
114
return Object.assign(
115
{},
0 commit comments