Skip to content

Commit ba80868

Browse files
committed
address SL comments
1 parent 4863f88 commit ba80868

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/eslint-plugin/src/rules/boolean-verb-prefix.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/utils';
22
import upperFirst from 'lodash/upperFirst';
33

44
import { createRule } from '../utils/createRule';
5-
// import { deepOmit } from '../utils/deepOmit';
65
import { isTestFile } from '../utils/isTestFile';
76
import { RuleContext } from '../utils/RuleContext';
87

98
const VERBS = ['is', 'are', 'has', 'should', 'did', 'does', 'will', 'use'];
10-
const booleanComparators = ['===', '==', '>', '>=', '<', '<=', '!=', '!=='];
9+
const BOOLEAN_COMPARATORS = ['===', '==', '>', '>=', '<', '<=', '!=', '!=='];
1110

1211
type BooleanVerbPrefixOptions = [
1312
{
@@ -78,7 +77,7 @@ export const booleanVerbPrefixRule = createRule<
7877

7978
if (
8079
node.init.type === AST_NODE_TYPES.BinaryExpression &&
81-
booleanComparators.includes(node.init.operator)
80+
BOOLEAN_COMPARATORS.includes(node.init.operator)
8281
) {
8382
lintBooleanDeclaration(context, node);
8483
}

0 commit comments

Comments
 (0)