-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathtypes.ts
67 lines (55 loc) · 1.92 KB
/
types.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import type { ParserOptions } from 'prettier';
import type { PugSortAttributes } from './attribute-sorting';
import type { ArrowParens } from './common';
import type {
PugEmptyAttributes,
PugEmptyAttributesForceQuotes,
} from './empty-attributes';
import type { PugAttributeSeparator } from './pug-attribute-separator';
import type { PugClassLocation } from './pug-class-location';
import type { PugClassNotation } from './pug-class-notation';
import type { PugClosingBracketIndentDepth } from './pug-closing-bracket-indent-depth';
import type { PugCommentPreserveSpaces } from './pug-comment-preserve-spaces';
import type { PugFramework } from './pug-framework';
import type { PugIdNotation } from './pug-id-notation';
/**
* Extended pug option object.
*/
export interface PugParserOptions
extends Pick<
ParserOptions,
| 'printWidth'
| 'singleQuote'
| 'tabWidth'
| 'useTabs'
| 'bracketSpacing'
| 'arrowParens'
| 'semi'
| 'bracketSameLine'
> {
pugPrintWidth: number;
pugSingleQuote: boolean | null;
pugTabWidth: number;
pugUseTabs: boolean | null;
pugBracketSpacing: boolean | null;
pugArrowParens: ArrowParens | null;
pugSemi: boolean | null;
pugBracketSameLine: boolean | null;
pugClosingBracketIndentDepth: PugClosingBracketIndentDepth;
pugAttributeSeparator: PugAttributeSeparator;
pugCommentPreserveSpaces: PugCommentPreserveSpaces;
pugSortAttributes: PugSortAttributes;
pugSortAttributesBeginning: string[];
pugSortAttributesEnd: string[];
pugWrapAttributesThreshold: number;
pugWrapAttributesPattern: string;
pugClassNotation: PugClassNotation;
pugIdNotation: PugIdNotation;
pugClassLocation: PugClassLocation;
pugExplicitDiv: boolean;
pugEmptyAttributes: PugEmptyAttributes;
pugEmptyAttributesForceQuotes: PugEmptyAttributesForceQuotes;
pugSingleFileComponentIndentation: boolean;
pugFramework: PugFramework;
pugPreserveAttributeBrackets: boolean;
}