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

Commit 5679f06

Browse files
committed
Update eslint rules
1 parent ae9d347 commit 5679f06

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

src/rules/eslint/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ import type { NoEmptyRule } from './no-empty';
109109
import type { NoEmptyCharacterClassRule } from './no-empty-character-class';
110110
import type { NoEmptyFunctionRule } from './no-empty-function';
111111
import type { NoEmptyPatternRule } from './no-empty-pattern';
112+
import type { NoEmptyStaticBlockRule } from './no-empty-static-block';
112113
import type { NoEqNullRule } from './no-eq-null';
113114
import type { NoEvalRule } from './no-eval';
114115
import type { NoExAssignRule } from './no-ex-assign';
@@ -153,6 +154,7 @@ import type { NoNegatedInLhsRule } from './no-negated-in-lhs';
153154
import type { NoNestedTernaryRule } from './no-nested-ternary';
154155
import type { NoNewRule } from './no-new';
155156
import type { NoNewFuncRule } from './no-new-func';
157+
import type { NoNewNativeNonconstructorRule } from './no-new-native-nonconstructor';
156158
import type { NoNewObjectRule } from './no-new-object';
157159
import type { NoNewRequireRule } from './no-new-require';
158160
import type { NoNewSymbolRule } from './no-new-symbol';
@@ -401,6 +403,7 @@ export type EslintRules = AccessorPairsRule &
401403
NoEmptyCharacterClassRule &
402404
NoEmptyFunctionRule &
403405
NoEmptyPatternRule &
406+
NoEmptyStaticBlockRule &
404407
NoEqNullRule &
405408
NoEvalRule &
406409
NoExAssignRule &
@@ -445,6 +448,7 @@ export type EslintRules = AccessorPairsRule &
445448
NoNestedTernaryRule &
446449
NoNewRule &
447450
NoNewFuncRule &
451+
NoNewNativeNonconstructorRule &
448452
NoNewObjectRule &
449453
NoNewRequireRule &
450454
NoNewSymbolRule &
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 empty static blocks.
5+
*
6+
* @see [no-empty-static-block](https://eslint.org/docs/rules/no-empty-static-block)
7+
*/
8+
export type NoEmptyStaticBlockRuleConfig = RuleConfig<[]>;
9+
10+
/**
11+
* Disallow empty static blocks.
12+
*
13+
* @see [no-empty-static-block](https://eslint.org/docs/rules/no-empty-static-block)
14+
*/
15+
export interface NoEmptyStaticBlockRule {
16+
/**
17+
* Disallow empty static blocks.
18+
*
19+
* @see [no-empty-static-block](https://eslint.org/docs/rules/no-empty-static-block)
20+
*/
21+
'no-empty-static-block': NoEmptyStaticBlockRuleConfig;
22+
}
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 `new` operators with global non-constructor functions.
5+
*
6+
* @see [no-new-native-nonconstructor](https://eslint.org/docs/rules/no-new-native-nonconstructor)
7+
*/
8+
export type NoNewNativeNonconstructorRuleConfig = RuleConfig<[]>;
9+
10+
/**
11+
* Disallow `new` operators with global non-constructor functions.
12+
*
13+
* @see [no-new-native-nonconstructor](https://eslint.org/docs/rules/no-new-native-nonconstructor)
14+
*/
15+
export interface NoNewNativeNonconstructorRule {
16+
/**
17+
* Disallow `new` operators with global non-constructor functions.
18+
*
19+
* @see [no-new-native-nonconstructor](https://eslint.org/docs/rules/no-new-native-nonconstructor)
20+
*/
21+
'no-new-native-nonconstructor': NoNewNativeNonconstructorRuleConfig;
22+
}

0 commit comments

Comments
 (0)