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

Commit c8262ea

Browse files
committed
Update eslint rules
1 parent f9989a2 commit c8262ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/rules/eslint/new-parens.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import type { RuleConfig } from '../rule-config';
33
/**
44
* Option.
55
*/
6-
export type NewParensOption = [] | ['always' | 'never'];
6+
export type NewParensOption = 'always' | 'never';
77

88
/**
99
* Options.
1010
*/
11-
export type NewParensOptions = NewParensOption;
11+
export type NewParensOptions = [NewParensOption?];
1212

1313
/**
1414
* Enforce or disallow parentheses when invoking a constructor with no arguments.

src/rules/eslint/no-div-regex.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import type { RuleConfig } from '../rule-config';
22

33
/**
4-
* Disallow division operators explicitly at the beginning of regular expressions.
4+
* Disallow equal signs explicitly at the beginning of regular expressions.
55
*
66
* @see [no-div-regex](https://eslint.org/docs/rules/no-div-regex)
77
*/
88
export type NoDivRegexRuleConfig = RuleConfig<[]>;
99

1010
/**
11-
* Disallow division operators explicitly at the beginning of regular expressions.
11+
* Disallow equal signs explicitly at the beginning of regular expressions.
1212
*
1313
* @see [no-div-regex](https://eslint.org/docs/rules/no-div-regex)
1414
*/
1515
export interface NoDivRegexRule {
1616
/**
17-
* Disallow division operators explicitly at the beginning of regular expressions.
17+
* Disallow equal signs explicitly at the beginning of regular expressions.
1818
*
1919
* @see [no-div-regex](https://eslint.org/docs/rules/no-div-regex)
2020
*/

0 commit comments

Comments
 (0)