This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +64
-2
lines changed Expand file tree Collapse file tree 3 files changed +64
-2
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ import type { NoTernaryRule } from './no-ternary';
195195import type { NoThisBeforeSuperRule } from './no-this-before-super' ;
196196import type { NoThrowLiteralRule } from './no-throw-literal' ;
197197import type { NoTrailingSpacesRule } from './no-trailing-spaces' ;
198+ import type { NoUndefRule } from './no-undef' ;
198199import type { NoUndefInitRule } from './no-undef-init' ;
199200import type { NoUndefinedRule } from './no-undefined' ;
200201import type { NoUnderscoreDangleRule } from './no-underscore-dangle' ;
@@ -486,6 +487,7 @@ export type EslintRules = AccessorPairsRule &
486487 NoThisBeforeSuperRule &
487488 NoThrowLiteralRule &
488489 NoTrailingSpacesRule &
490+ NoUndefRule &
489491 NoUndefInitRule &
490492 NoUndefinedRule &
491493 NoUnderscoreDangleRule &
Original file line number Diff line number Diff line change @@ -19,12 +19,38 @@ export interface MaxLenSetting {
1919/**
2020 * Config.
2121 */
22- export type MaxLenConfig = MaxLenSetting | number ;
22+ export type MaxLenConfig =
23+ | {
24+ code ?: number ;
25+ comments ?: number ;
26+ tabWidth ?: number ;
27+ ignorePattern ?: string ;
28+ ignoreComments ?: boolean ;
29+ ignoreStrings ?: boolean ;
30+ ignoreUrls ?: boolean ;
31+ ignoreTemplateLiterals ?: boolean ;
32+ ignoreRegExpLiterals ?: boolean ;
33+ ignoreTrailingComments ?: boolean ;
34+ }
35+ | number ;
2336
2437/**
2538 * Option.
2639 */
27- export type MaxLenOption = MaxLenSetting | number ;
40+ export type MaxLenOption =
41+ | {
42+ code ?: number ;
43+ comments ?: number ;
44+ tabWidth ?: number ;
45+ ignorePattern ?: string ;
46+ ignoreComments ?: boolean ;
47+ ignoreStrings ?: boolean ;
48+ ignoreUrls ?: boolean ;
49+ ignoreTemplateLiterals ?: boolean ;
50+ ignoreRegExpLiterals ?: boolean ;
51+ ignoreTrailingComments ?: boolean ;
52+ }
53+ | number ;
2854
2955/**
3056 * Options.
Original file line number Diff line number Diff line change 1+ import type { RuleConfig } from '../rule-config' ;
2+
3+ /**
4+ * Option.
5+ */
6+ export interface NoUndefOption {
7+ typeof ?: boolean ;
8+ }
9+
10+ /**
11+ * Options.
12+ */
13+ export type NoUndefOptions = [ NoUndefOption ?] ;
14+
15+ /**
16+ * Disallow the use of undeclared variables unless mentioned in `/*global ` comments.
17+ *
18+ * @see [no-undef](https://eslint.org/docs/rules/no-undef)
19+ */
20+ export type NoUndefRuleConfig = RuleConfig < NoUndefOptions > ;
21+
22+ /**
23+ * Disallow the use of undeclared variables unless mentioned in `/*global ` comments.
24+ *
25+ * @see [no-undef](https://eslint.org/docs/rules/no-undef)
26+ */
27+ export interface NoUndefRule {
28+ /**
29+ * Disallow the use of undeclared variables unless mentioned in `/*global ` comments.
30+ *
31+ * @see [no-undef](https://eslint.org/docs/rules/no-undef)
32+ */
33+ 'no-undef' : NoUndefRuleConfig ;
34+ }
You can’t perform that action at this time.
0 commit comments