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

Commit ef9eb71

Browse files
author
Christopher Quadflieg
committed
First tuple value can be optional and fallback to default
1 parent e7caf6c commit ef9eb71

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rules/eslint/quotes.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface QuotesConfig {
2424
*
2525
* @see [quotes](https://eslint.org/docs/rules/quotes)
2626
*/
27-
export type QuotesRuleConfig = RuleConfig<[QuotesOption, QuotesConfig]>;
27+
export type QuotesRuleConfig = RuleConfig<[QuotesOption?, QuotesConfig?]>;
2828

2929
/**
3030
* Enforce the consistent use of either backticks, double, or single quotes.

src/rules/eslint/semi.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface SemiAlwaysConfig {
1313
/**
1414
* Always Options.
1515
*/
16-
export type SemiAlwaysOptions = ['always', SemiAlwaysConfig?];
16+
export type SemiAlwaysOptions = ['always'?, SemiAlwaysConfig?];
1717

1818
/**
1919
* Never Config.
@@ -30,7 +30,7 @@ export interface SemiNeverConfig {
3030
/**
3131
* Never Options.
3232
*/
33-
export type SemiNeverOptions = ['never', SemiNeverConfig?];
33+
export type SemiNeverOptions = ['never'?, SemiNeverConfig?];
3434

3535
/**
3636
* Options.

0 commit comments

Comments
 (0)