|
1 | 1 | import { Plugin } from 'rollup' |
2 | 2 |
|
3 | 3 | export interface RollupJsonLintOptions { |
4 | | - /** |
5 | | - * All JSON files will be parsed by default, |
6 | | - * but you can also specifically include files. |
7 | | - */ |
| 4 | + /** |
| 5 | + * All JSON files will be parsed by default, |
| 6 | + * but you can also specifically include files. |
| 7 | + */ |
8 | 8 | include?: string | RegExp | ReadonlyArray<string | RegExp> | null |
9 | | - /** |
10 | | - * All JSON files will be parsed by default, |
11 | | - * but you can also specifically exclude files. |
12 | | - */ |
| 9 | + /** |
| 10 | + * All JSON files will be parsed by default, |
| 11 | + * but you can also specifically exclude files. |
| 12 | + */ |
13 | 13 | exclude?: string | RegExp | ReadonlyArray<string | RegExp> | null |
14 | | - /** |
15 | | - * For tree-shaking, properties will be declared as variables, using |
16 | | - * either `var` or `const`. |
17 | | - * @default false |
18 | | - */ |
| 14 | + /** |
| 15 | + * For tree-shaking, properties will be declared as variables, using |
| 16 | + * either `var` or `const`. |
| 17 | + * @default false |
| 18 | + */ |
19 | 19 | preferConst?: boolean |
20 | | - /** |
21 | | - * Specifies indentation for the generated default export. |
22 | | - * @default '\t' |
23 | | - */ |
| 20 | + /** |
| 21 | + * Specifies indentation for the generated default export. |
| 22 | + * @default '\t' |
| 23 | + */ |
24 | 24 | indent: string |
25 | | - /** |
26 | | - * Ignores indent and generates the smallest code. |
27 | | - * @default false |
28 | | - */ |
| 25 | + /** |
| 26 | + * Ignores indent and generates the smallest code. |
| 27 | + * @default false |
| 28 | + */ |
29 | 29 | compact: boolean |
30 | | - /** |
31 | | - * Generates a named export for every property of the JSON object. |
32 | | - * @default true |
33 | | - */ |
| 30 | + /** |
| 31 | + * Generates a named export for every property of the JSON object. |
| 32 | + * @default true |
| 33 | + */ |
34 | 34 | namedExports: true |
35 | 35 | } |
36 | 36 |
|
|
0 commit comments