Skip to content

Commit f23ee5e

Browse files
authored
refactor(core): simplify formatter selection (#39575)
1 parent 77aa85c commit f23ee5e

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

packages/core/src/formatter.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ const layer = Layer.effect(
5454
})
5555
formatters = builtIns
5656
if (configured === true) return
57-
if (configured.ruff?.disabled || configured.uv?.disabled) {
58-
formatters = formatters.filter((formatter) => formatter.name !== "ruff" && formatter.name !== "uv")
59-
}
6057

6158
for (const [name, entry] of Object.entries(configured)) {
6259
const index = formatters.findIndex((formatter) => formatter.name === name)

packages/core/src/formatter/builtins.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export function make(input: {
1818
readonly fs: FSUtil.Interface
1919
readonly npm: Npm.Interface
2020
readonly processes: AppProcess.Interface
21-
readonly experimentalOxfmt?: boolean
2221
}) {
2322
const disabled = false as const
2423
const findUp = (target: string) => input.fs.findUp(target, input.directory, input.worktree)

0 commit comments

Comments
 (0)