-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathoptions.ts
More file actions
31 lines (27 loc) · 795 Bytes
/
options.ts
File metadata and controls
31 lines (27 loc) · 795 Bytes
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
import type {
BooleanSupportOption,
ParserOptions,
SupportOptions,
} from 'prettier';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export interface PluginOptions<T = any> extends ParserOptions<T> {
templateExportDefault?: boolean;
templateSingleQuote?: boolean;
}
const templateExportDefault: BooleanSupportOption = {
category: 'Format',
default: false,
description:
'Prepend default export template tags with "export default". Since 0.1.0.',
type: 'boolean',
};
const templateSingleQuote: BooleanSupportOption = {
category: 'Format',
description:
'Use single quotes instead of double quotes within template tags. Since 0.0.3.',
type: 'boolean',
};
export const options: SupportOptions = {
templateExportDefault,
templateSingleQuote,
};