-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
comma-dangle.d.ts
50 lines (46 loc) · 1.19 KB
/
comma-dangle.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export type CommaDangleOption =
| []
| [
| Value
| {
arrays?: ValueWithIgnore;
objects?: ValueWithIgnore;
imports?: ValueWithIgnore;
exports?: ValueWithIgnore;
functions?: ValueWithIgnore;
},
];
export type Value = 'always-multiline' | 'always' | 'never' | 'only-multiline';
export type ValueWithIgnore =
| 'always-multiline'
| 'always'
| 'ignore'
| 'never'
| 'only-multiline';
/**
* Options.
*/
export type CommaDangleOptions = CommaDangleOption;
/**
* Require or disallow trailing commas.
*
* @see [comma-dangle](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/comma-dangle.html)
*/
export type CommaDangleRuleConfig = RuleConfig<CommaDangleOptions>;
/**
* Require or disallow trailing commas.
*
* @see [comma-dangle](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/comma-dangle.html)
*/
export interface CommaDangleRule {
/**
* Require or disallow trailing commas.
*
* @see [comma-dangle](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/comma-dangle.html)
*/
'jsonc/comma-dangle': CommaDangleRuleConfig;
}