This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ import type { NoCondAssignRule } from './no-cond-assign';
89
89
import type { NoConfusingArrowRule } from './no-confusing-arrow' ;
90
90
import type { NoConsoleRule } from './no-console' ;
91
91
import type { NoConstAssignRule } from './no-const-assign' ;
92
+ import type { NoConstantBinaryExpressionRule } from './no-constant-binary-expression' ;
92
93
import type { NoConstantConditionRule } from './no-constant-condition' ;
93
94
import type { NoConstructorReturnRule } from './no-constructor-return' ;
94
95
import type { NoContinueRule } from './no-continue' ;
@@ -377,6 +378,7 @@ export type EslintRules = AccessorPairsRule &
377
378
NoConfusingArrowRule &
378
379
NoConsoleRule &
379
380
NoConstAssignRule &
381
+ NoConstantBinaryExpressionRule &
380
382
NoConstantConditionRule &
381
383
NoConstructorReturnRule &
382
384
NoContinueRule &
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config' ;
2
+
3
+ /**
4
+ * Disallow expressions where the operation doesn't affect the value.
5
+ *
6
+ * @see [no-constant-binary-expression](https://eslint.org/docs/rules/no-constant-binary-expression)
7
+ */
8
+ export type NoConstantBinaryExpressionRuleConfig = RuleConfig < [ ] > ;
9
+
10
+ /**
11
+ * Disallow expressions where the operation doesn't affect the value.
12
+ *
13
+ * @see [no-constant-binary-expression](https://eslint.org/docs/rules/no-constant-binary-expression)
14
+ */
15
+ export interface NoConstantBinaryExpressionRule {
16
+ /**
17
+ * Disallow expressions where the operation doesn't affect the value.
18
+ *
19
+ * @see [no-constant-binary-expression](https://eslint.org/docs/rules/no-constant-binary-expression)
20
+ */
21
+ 'no-constant-binary-expression' : NoConstantBinaryExpressionRuleConfig ;
22
+ }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export interface NoUnderscoreDangleOption {
10
10
allowAfterThisConstructor ?: boolean ;
11
11
enforceInMethodNames ?: boolean ;
12
12
allowFunctionParams ?: boolean ;
13
+ enforceInClassFields ?: boolean ;
13
14
}
14
15
15
16
/**
You can’t perform that action at this time.
0 commit comments