We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7df313d commit dcdb066Copy full SHA for dcdb066
lib/rules/no-useless-token-range.js
@@ -112,9 +112,9 @@ module.exports = {
112
!affectsGetTokenOutput(identifier.parent.parent.arguments[1]) &&
113
identifier.parent.parent.parent.type === 'MemberExpression' &&
114
identifier.parent.parent === identifier.parent.parent.parent.object && (
115
- (isStartAccess(identifier.parent.parent.parent) && identifier.parent.property.name === 'getFirstToken') ||
+ (isStartAccess(identifier.parent.parent.parent) && identifier.parent.property.name === 'getFirstToken') ||
116
(isEndAccess(identifier.parent.parent.parent) && identifier.parent.property.name === 'getLastToken')
117
- )
+ )
118
)
119
.forEach(identifier => {
120
const fullRangeAccess = isRangeAccess(identifier.parent.parent.parent)
0 commit comments