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

Commit 544b1e2

Browse files
committed
Update rules
1 parent 6a5c85d commit 544b1e2

File tree

129 files changed

+1783
-956
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+1783
-956
lines changed

src/rules/eslint/no-confusing-arrow.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { RuleConfig } from '../rule-config';
55
*/
66
export interface NoConfusingArrowOption {
77
allowParens?: boolean;
8+
onlyOneSimpleParam?: boolean;
89
}
910

1011
/**

src/rules/eslint/no-shadow.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export interface NoShadowOption {
77
builtinGlobals?: boolean;
88
hoist?: 'all' | 'functions' | 'never';
99
allow?: string[];
10+
ignoreOnInitialization?: boolean;
1011
}
1112

1213
/**

src/rules/eslint/no-unused-vars.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type NoUnusedVarsOption =
1313
argsIgnorePattern?: string;
1414
caughtErrors?: 'all' | 'none';
1515
caughtErrorsIgnorePattern?: string;
16+
destructuredArrayIgnorePattern?: string;
1617
};
1718

1819
/**

src/rules/jsdoc/tag-lines.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { RuleConfig } from '../rule-config';
55
*/
66
export interface TagLinesConfig {
77
count?: number;
8+
dropEndLines?: boolean;
89
noEndLines?: boolean;
910
tags?: {
1011
[k: string]: {

src/rules/typescript-eslint/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import type { NoNonNullAssertedOptionalChainRule } from './no-non-null-asserted-
6060
import type { NoNonNullAssertionRule } from './no-non-null-assertion';
6161
import type { NoParameterPropertiesRule } from './no-parameter-properties';
6262
import type { NoRedeclareRule } from './no-redeclare';
63+
import type { NoRedundantTypeConstituentsRule } from './no-redundant-type-constituents';
6364
import type { NoRequireImportsRule } from './no-require-imports';
6465
import type { NoRestrictedImportsRule } from './no-restricted-imports';
6566
import type { NoShadowRule } from './no-shadow';
@@ -81,6 +82,7 @@ import type { NoUnusedExpressionsRule } from './no-unused-expressions';
8182
import type { NoUnusedVarsRule } from './no-unused-vars';
8283
import type { NoUseBeforeDefineRule } from './no-use-before-define';
8384
import type { NoUselessConstructorRule } from './no-useless-constructor';
85+
import type { NoUselessEmptyExportRule } from './no-useless-empty-export';
8486
import type { NoVarRequiresRule } from './no-var-requires';
8587
import type { NonNullableTypeAssertionStyleRule } from './non-nullable-type-assertion-style';
8688
import type { ObjectCurlySpacingRule } from './object-curly-spacing';
@@ -110,6 +112,7 @@ import type { RestrictTemplateExpressionsRule } from './restrict-template-expres
110112
import type { ReturnAwaitRule } from './return-await';
111113
import type { SemiRule } from './semi';
112114
import type { SortTypeUnionIntersectionMembersRule } from './sort-type-union-intersection-members';
115+
import type { SpaceBeforeBlocksRule } from './space-before-blocks';
113116
import type { SpaceBeforeFunctionParenRule } from './space-before-function-paren';
114117
import type { SpaceInfixOpsRule } from './space-infix-ops';
115118
import type { StrictBooleanExpressionsRule } from './strict-boolean-expressions';
@@ -185,6 +188,7 @@ export type TypeScriptRules = AdjacentOverloadSignaturesRule &
185188
NoNonNullAssertionRule &
186189
NoParameterPropertiesRule &
187190
NoRedeclareRule &
191+
NoRedundantTypeConstituentsRule &
188192
NoRequireImportsRule &
189193
NoRestrictedImportsRule &
190194
NoShadowRule &
@@ -206,6 +210,7 @@ export type TypeScriptRules = AdjacentOverloadSignaturesRule &
206210
NoUnusedVarsRule &
207211
NoUseBeforeDefineRule &
208212
NoUselessConstructorRule &
213+
NoUselessEmptyExportRule &
209214
NoVarRequiresRule &
210215
NonNullableTypeAssertionStyleRule &
211216
ObjectCurlySpacingRule &
@@ -235,6 +240,7 @@ export type TypeScriptRules = AdjacentOverloadSignaturesRule &
235240
ReturnAwaitRule &
236241
SemiRule &
237242
SortTypeUnionIntersectionMembersRule &
243+
SpaceBeforeBlocksRule &
238244
SpaceBeforeFunctionParenRule &
239245
SpaceInfixOpsRule &
240246
StrictBooleanExpressionsRule &

0 commit comments

Comments
 (0)