bitter-ability-32190
09/29/2022, 10:47 PMhundreds-father-404
09/29/2022, 10:49 PMbitter-ability-32190
09/29/2022, 10:57 PMwide-midnight-78598
09/29/2022, 11:17 PMpants.toml
for a multi-target formatter. Not proposing this is the best, but we're competing against:
npx prettier --write .
If I have to do much configuration to replicate that, it feels silly.
Now, if my equivalent to this was:
[...
"pants.backend.experimental.javascript.lint.prettier",
...]
[prettier]
coolname=["**/*.html", "foo/**/*.{md,js,ts}", bar/**/*.json"]
That presents a bunch of technical challenges if there are conflicting formatters, but I would then want to treat it as if I was just running the above npx
command and everything "just works ™️ " , and configs are picked up in relative (and parent) directory terms (and etc etc).npx
command, that's already getting me somewhere (as a user)bitter-ability-32190
09/30/2022, 1:20 AMwide-midnight-78598
09/30/2022, 1:23 AM./pants fmt lint :::::::::::::::::::::::
When would the targetless vs target-ful formatters run?bitter-ability-32190
09/30/2022, 1:24 AM::
Targetless formatters are formatters are targetless linters are linters 🙂wide-midnight-78598
09/30/2022, 1:25 AMbitter-ability-32190
09/30/2022, 1:26 AMwide-midnight-78598
09/30/2022, 1:26 AMbitter-ability-32190
09/30/2022, 1:27 AMwide-midnight-78598
09/30/2022, 1:28 AMDeclare your request type as a subclass of FmtFilesRequestWould this apply to targeted and target-lacking files? I haven't looked at the plugin after the latest changes
bitter-ability-32190
09/30/2022, 1:33 AMwide-midnight-78598
09/30/2022, 1:36 AMbitter-ability-32190
09/30/2022, 1:37 AMwide-midnight-78598
09/30/2022, 1:38 AMbitter-ability-32190
09/30/2022, 12:55 PM