/
html-indent.d.ts
50 lines (45 loc) · 1.06 KB
/
html-indent.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';
/**
* Config.
*/
export interface HtmlIndentConfig {
attribute?: number;
baseIndent?: number;
closeBracket?:
| number
| {
startTag?: number;
endTag?: number;
selfClosingTag?: number;
};
switchCase?: number;
alignAttributesVertically?: boolean;
ignores?: string[];
}
/**
* Option.
*/
export type HtmlIndentOption = number | 'tab';
/**
* Options.
*/
export type HtmlIndentOptions = [HtmlIndentOption?, HtmlIndentConfig?];
/**
* Enforce consistent indentation in `<template>`.
*
* @see [html-indent](https://eslint.vuejs.org/rules/html-indent.html)
*/
export type HtmlIndentRuleConfig = RuleConfig<HtmlIndentOptions>;
/**
* Enforce consistent indentation in `<template>`.
*
* @see [html-indent](https://eslint.vuejs.org/rules/html-indent.html)
*/
export interface HtmlIndentRule {
/**
* Enforce consistent indentation in `<template>`.
*
* @see [html-indent](https://eslint.vuejs.org/rules/html-indent.html)
*/
'vue/html-indent': HtmlIndentRuleConfig;
}