refactor(core): simplify formatter selection (#39575)
This commit is contained in:
parent
77aa85c589
commit
f23ee5e4a8
2 changed files with 0 additions and 4 deletions
|
|
@ -54,9 +54,6 @@ const layer = Layer.effect(
|
|||
})
|
||||
formatters = builtIns
|
||||
if (configured === true) return
|
||||
if (configured.ruff?.disabled || configured.uv?.disabled) {
|
||||
formatters = formatters.filter((formatter) => formatter.name !== "ruff" && formatter.name !== "uv")
|
||||
}
|
||||
|
||||
for (const [name, entry] of Object.entries(configured)) {
|
||||
const index = formatters.findIndex((formatter) => formatter.name === name)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ export function make(input: {
|
|||
readonly fs: FSUtil.Interface
|
||||
readonly npm: Npm.Interface
|
||||
readonly processes: AppProcess.Interface
|
||||
readonly experimentalOxfmt?: boolean
|
||||
}) {
|
||||
const disabled = false as const
|
||||
const findUp = (target: string) => input.fs.findUp(target, input.directory, input.worktree)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue