Skip to content

Commit fe23b03

Browse files
committed
fix: add prettier-ignore to prefs dts
ref: #62 (comment)
1 parent 9cc063a commit fe23b03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/scaffold/src/utils/prefs-manager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,17 @@ export function renderPluginPrefsDts(prefs: Prefs, prefix: string) {
116116
/* eslint-disable */
117117
// @ts-nocheck
118118
119+
// prettier-ignore
119120
type _PluginPrefsMap = {
120121
${Object.entries(prefs).map(([key, value]) => {
121122
return `"${key}": ${typeof value};`;
122123
}).join("\n ")}
123124
};
124125
126+
// prettier-ignore
125127
type PluginPrefKey<K extends keyof _PluginPrefsMap> = \`${prefix}.\${K}\`;
126128
129+
// prettier-ignore
127130
type PluginPrefsMap = {
128131
[K in keyof _PluginPrefsMap as PluginPrefKey<K>]: _PluginPrefsMap[K]
129132
};

0 commit comments

Comments
 (0)