File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -173,11 +173,7 @@ module.exports = {
173
173
return ;
174
174
}
175
175
176
- if (
177
- node . parent . type !== 'BinaryExpression'
178
- && node . parent . type !== 'AssignmentExpression'
179
- && node . parent . type !== 'LogicalExpression'
180
- ) {
176
+ if ( node . parent . type !== 'AssignmentExpression' ) {
181
177
return ;
182
178
}
183
179
Original file line number Diff line number Diff line change @@ -64,18 +64,7 @@ module.exports = {
64
64
return ;
65
65
}
66
66
67
- if (
68
- closingSlash . type !== 'Boolean'
69
- && closingSlash . type !== 'Null'
70
- && closingSlash . type !== 'Identifier'
71
- && closingSlash . type !== 'Keyword'
72
- && closingSlash . type !== 'Punctuator'
73
- && closingSlash . type !== 'JSXIdentifier'
74
- && closingSlash . type !== 'JSXText'
75
- && closingSlash . type !== 'Numeric'
76
- && closingSlash . type !== 'String'
77
- && closingSlash . type !== 'RegularExpression'
78
- ) {
67
+ if ( closingSlash . type !== 'Punctuator' ) {
79
68
return ;
80
69
}
81
70
You can’t perform that action at this time.
0 commit comments