Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f06808f

Browse files
committed
Resolves #554
1 parent 9d443b6 commit f06808f

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

.changeset/soft-socks-fry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ultracite": patch
3+
---
4+
5+
Don't pass options to formatters, only linters

packages/cli/src/commands/check.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,13 @@ export const check = async (
208208

209209
switch (linter) {
210210
case "eslint": {
211-
await runPrettierCheck(files, passthrough);
211+
await runPrettierCheck(files, []);
212212
await runEslintCheck(files, passthrough);
213-
await runStylelintCheck(files, passthrough);
213+
await runStylelintCheck(files, []);
214214
break;
215215
}
216216
case "oxlint": {
217-
await runOxfmtCheck(files, passthrough);
217+
await runOxfmtCheck(files, []);
218218
await runOxlintCheck(files, passthrough);
219219
break;
220220
}

packages/cli/src/commands/fix.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,13 @@ export const fix = async (
215215

216216
switch (linter) {
217217
case "eslint": {
218-
await runPrettierFix(files, passthrough);
218+
await runPrettierFix(files, []);
219219
await runEslintFix(files, passthrough);
220-
await runStylelintFix(files, passthrough);
220+
await runStylelintFix(files, []);
221221
break;
222222
}
223223
case "oxlint": {
224-
await runOxfmtFix(files, passthrough);
224+
await runOxfmtFix(files, []);
225225
await runOxlintFix(files, passthrough);
226226
break;
227227
}

0 commit comments

Comments
 (0)