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 ef9b3d2 commit 4dcd097Copy full SHA for 4dcd097
src/index.js
@@ -78,7 +78,7 @@ function memberExpressionRootIdentifier(path) {
78
memberExpression = parent.get('value')
79
}
80
81
- if (!memberExpression) {
+ if (!memberExpression || memberExpression.type !== 'MemberExpression') {
82
// This case is currently unhandled by this plugin.
83
return null
84
test/fixtures/bugfix-169/actual.js
@@ -0,0 +1,7 @@
1
+class Test extends React.Component {
2
+ static propTypes = {
3
+ columns: PropTypes.shape({
4
+ [constants.TEST]: STRING_PROP_TYPE,
5
+ }),
6
+ };
7
+}
test/fixtures/bugfix-169/expected-remove-es6.js
@@ -0,0 +1 @@
+class Test extends React.Component {}
0 commit comments