-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
array-bracket-newline.d.ts
38 lines (34 loc) · 1.09 KB
/
array-bracket-newline.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
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export type ArrayBracketNewlineOption =
| ('always' | 'never' | 'consistent')
| {
multiline?: boolean;
minItems?: number | null;
};
/**
* Options.
*/
export type ArrayBracketNewlineOptions = [ArrayBracketNewlineOption?];
/**
* Enforce line breaks after opening and before closing array brackets.
*
* @see [array-bracket-newline](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/array-bracket-newline.html)
*/
export type ArrayBracketNewlineRuleConfig =
RuleConfig<ArrayBracketNewlineOptions>;
/**
* Enforce line breaks after opening and before closing array brackets.
*
* @see [array-bracket-newline](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/array-bracket-newline.html)
*/
export interface ArrayBracketNewlineRule {
/**
* Enforce line breaks after opening and before closing array brackets.
*
* @see [array-bracket-newline](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/array-bracket-newline.html)
*/
'jsonc/array-bracket-newline': ArrayBracketNewlineRuleConfig;
}