Skip to content

Commit

Permalink
First tuple value can be optional and fallback to default
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Quadflieg committed Mar 25, 2021
1 parent e7caf6c commit ef9eb71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rules/eslint/quotes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface QuotesConfig {
*
* @see [quotes](https://eslint.org/docs/rules/quotes)
*/
export type QuotesRuleConfig = RuleConfig<[QuotesOption, QuotesConfig]>;
export type QuotesRuleConfig = RuleConfig<[QuotesOption?, QuotesConfig?]>;

/**
* Enforce the consistent use of either backticks, double, or single quotes.
Expand Down
4 changes: 2 additions & 2 deletions src/rules/eslint/semi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface SemiAlwaysConfig {
/**
* Always Options.
*/
export type SemiAlwaysOptions = ['always', SemiAlwaysConfig?];
export type SemiAlwaysOptions = ['always'?, SemiAlwaysConfig?];

/**
* Never Config.
Expand All @@ -30,7 +30,7 @@ export interface SemiNeverConfig {
/**
* Never Options.
*/
export type SemiNeverOptions = ['never', SemiNeverConfig?];
export type SemiNeverOptions = ['never'?, SemiNeverConfig?];

/**
* Options.
Expand Down

0 comments on commit ef9eb71

Please sign in to comment.