Skip to content

Commit 8de76e0

Browse files
authored
Merge pull request #27 from sairus2k/biome-optional
Refactor formatter logic
2 parents 58aeffc + ae57cbd commit 8de76e0

File tree

10 files changed

+229
-133
lines changed

10 files changed

+229
-133
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ export default {
4141
cwd: process.cwd(),
4242
// What formatter to use to format the generated files, prettier or biome, defaults to no formatter
4343
formatter: "biome",
44-
// The path to the formatter config file, defaults to no path
45-
pathToFormatterConfig: "./biome.json",
4644
// Callback function that is called when the script is generating the icon name
4745
// This is useful if you want to modify the icon name before it is written to the file
4846
iconNameTransformer: (iconName) => iconName
@@ -104,4 +102,4 @@ Component usage:
104102

105103
```jsx
106104
<Icon name="plus" />
107-
```
105+
```

package-lock.json

Lines changed: 160 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@
6767
],
6868
"homepage": "https://github.com/forge42dev/vite-plugin-icons-spritesheet#readme",
6969
"dependencies": {
70-
"@biomejs/js-api": "^0.6.2",
71-
"@biomejs/wasm-nodejs": "^1.8.3",
7270
"chalk": "^4.1.2",
7371
"glob": "^10.3.12",
7472
"node-html-parser": "^6.1.13",
75-
"prettier": "^3.3.3"
73+
"tinyexec": "^0.3.2"
7674
},
7775
"peerDependencies": {
7876
"vite": ">=5.2.0"
@@ -92,4 +90,4 @@
9290
"vite": "5.2.11",
9391
"vitest": "^1.5.2"
9492
}
95-
}
93+
}

0 commit comments

Comments
 (0)