-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
disable-enable-pair.d.ts
34 lines (30 loc) · 1.03 KB
/
disable-enable-pair.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface DisableEnablePairOption {
allowWholeFile?: boolean;
}
/**
* Options.
*/
export type DisableEnablePairOptions = [DisableEnablePairOption?];
/**
* Require a `eslint-enable` comment for every `eslint-disable` comment.
*
* @see [disable-enable-pair](https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html)
*/
export type DisableEnablePairRuleConfig = RuleConfig<DisableEnablePairOptions>;
/**
* Require a `eslint-enable` comment for every `eslint-disable` comment.
*
* @see [disable-enable-pair](https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html)
*/
export interface DisableEnablePairRule {
/**
* Require a `eslint-enable` comment for every `eslint-disable` comment.
*
* @see [disable-enable-pair](https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html)
*/
'eslint-comments/disable-enable-pair': DisableEnablePairRuleConfig;
}