Skip to content

Commit 9b540ee

Browse files
committed
removed deprecated api
1 parent 3078a1f commit 9b540ee

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/index.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,7 @@ interface PluginProps {
4545
* @default no formatter
4646
* @example "biome"
4747
*/
48-
formatter?: Formatter;
49-
/**
50-
* The path to the formatter config file
51-
* @default no path
52-
* @example "./biome.json"
53-
* @deprecated no need to provide a config path anymore
54-
*/
55-
pathToFormatterConfig?: string;
48+
formatter?: Formatter;
5649
/**
5750
* The cwd, defaults to process.cwd()
5851
* @default process.cwd()
@@ -285,8 +278,7 @@ export const iconsSpritesheet: (args: PluginProps | PluginProps[]) => any = (may
285278
fileName,
286279
cwd,
287280
iconNameTransformer,
288-
formatter,
289-
pathToFormatterConfig,
281+
formatter,
290282
} = config;
291283
const iconGenerator = async () =>
292284
generateIcons({
@@ -298,9 +290,7 @@ export const iconsSpritesheet: (args: PluginProps | PluginProps[]) => any = (may
298290
iconNameTransformer,
299291
formatter,
300292
});
301-
if (pathToFormatterConfig) {
302-
console.warn('"pathToFormatterConfig" is deprecated, please remove it from your config');
303-
}
293+
304294
const workDir = cwd ?? process.cwd();
305295
return {
306296
name: `icon-spritesheet-generator${i > 0 ? i.toString() : ""}`,

0 commit comments

Comments
 (0)