Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit b8bbe2c

Browse files
committed
Update eslint rules
1 parent f50f547 commit b8bbe2c

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

src/rules/eslint/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ import type { NoCondAssignRule } from './no-cond-assign';
8989
import type { NoConfusingArrowRule } from './no-confusing-arrow';
9090
import type { NoConsoleRule } from './no-console';
9191
import type { NoConstAssignRule } from './no-const-assign';
92+
import type { NoConstantBinaryExpressionRule } from './no-constant-binary-expression';
9293
import type { NoConstantConditionRule } from './no-constant-condition';
9394
import type { NoConstructorReturnRule } from './no-constructor-return';
9495
import type { NoContinueRule } from './no-continue';
@@ -377,6 +378,7 @@ export type EslintRules = AccessorPairsRule &
377378
NoConfusingArrowRule &
378379
NoConsoleRule &
379380
NoConstAssignRule &
381+
NoConstantBinaryExpressionRule &
380382
NoConstantConditionRule &
381383
NoConstructorReturnRule &
382384
NoContinueRule &
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

src/rules/eslint/no-underscore-dangle.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export interface NoUnderscoreDangleOption {
1010
allowAfterThisConstructor?: boolean;
1111
enforceInMethodNames?: boolean;
1212
allowFunctionParams?: boolean;
13+
enforceInClassFields?: boolean;
1314
}
1415

1516
/**

0 commit comments

Comments
 (0)