-
Notifications
You must be signed in to change notification settings - Fork 0
/
configs-config.ts
70 lines (63 loc) · 1.73 KB
/
configs-config.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
68
69
70
interface GitIgnoreOptions {
ignorePatterns: string[];
isDisableIgnorePresets?: boolean;
}
interface PatternsOptions {
patterns: string[];
}
type LinterOptions = Partial<GitIgnoreOptions> & PatternsOptions;
interface PrettierOptions extends LinterOptions {
tailwindcss?: boolean;
}
interface ESLintOptions extends LinterOptions {
next?: boolean;
nodePatterns?: string[];
vitestPatterns?: string[];
}
interface StylelintOptions extends LinterOptions {
cssModules?: boolean;
scssPatterns?: string[];
styledPatterns?: string[];
}
export interface ConfigsConfig {
features?: {
gitignore?: boolean | GitIgnoreOptions;
gitattributes?: boolean;
editorconfig?: boolean;
prettier?: false | PrettierOptions;
autocorrect?: boolean | Partial<LinterOptions>;
tsc?: false | PatternsOptions;
eslint?: false | ESLintOptions;
stylelint?: false | StylelintOptions;
htmlhint?: false | LinterOptions;
markdownlint?: false | LinterOptions;
cspell?: false | LinterOptions;
'sort-package-json'?: boolean | PatternsOptions;
vitest?: boolean;
commitlint?: boolean;
commitizen?: boolean;
'lint-staged'?: boolean;
husky?: boolean;
};
}
export interface NormalizedConfigsConfig {
features?: {
gitignore?: Partial<GitIgnoreOptions>;
gitattributes?: true;
editorconfig?: true;
prettier?: PrettierOptions;
autocorrect?: LinterOptions;
tsc?: PatternsOptions;
eslint?: ESLintOptions;
stylelint?: StylelintOptions;
htmlhint?: LinterOptions;
markdownlint?: LinterOptions;
cspell?: LinterOptions;
'sort-package-json'?: PatternsOptions;
vitest?: boolean;
commitlint?: true;
commitizen?: true;
'lint-staged'?: true;
husky?: true;
};
}