-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
no-collapsible-if.d.ts
32 lines (28 loc) · 952 Bytes
/
no-collapsible-if.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
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export type NoCollapsibleIfOption = 'sonar-runtime';
/**
* Options.
*/
export type NoCollapsibleIfOptions = [NoCollapsibleIfOption?];
/**
* Collapsible "if" statements should be merged.
*
* @see [no-collapsible-if](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-collapsible-if.md)
*/
export type NoCollapsibleIfRuleConfig = RuleConfig<NoCollapsibleIfOptions>;
/**
* Collapsible "if" statements should be merged.
*
* @see [no-collapsible-if](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-collapsible-if.md)
*/
export interface NoCollapsibleIfRule {
/**
* Collapsible "if" statements should be merged.
*
* @see [no-collapsible-if](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-collapsible-if.md)
*/
'sonarjs/no-collapsible-if': NoCollapsibleIfRuleConfig;
}