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 d77caa5 commit 32cb6e2Copy full SHA for 32cb6e2
lib/rules/jsx-props-no-multi-spaces.js
@@ -98,8 +98,12 @@ module.exports = {
98
}
99
100
function containsGenericType(node) {
101
- const containsTypeParams = typeof node.typeParameters !== 'undefined';
102
- return containsTypeParams && node.typeParameters.type === 'TSTypeParameterInstantiation';
+ const nodeTypeParams = node.typeParameters;
+ if (typeof nodeTypeParams === 'undefined') {
103
+ return false;
104
+ }
105
+
106
+ return nodeTypeParams.type === 'TSTypeParameterInstantiation';
107
108
109
function getGenericNode(node) {
0 commit comments