Closed elliot-nelson closed 1 year ago
Latest commit: 1d8392bebfdc10002230f537eb025f4374b42277
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
^ One note -- I don't know if this is normal or not -- but it looks like this PR doesn't run CI checks at all (I'd feel a bit safer if it was actually running CI on a change like this).
^ One note -- I don't know if this is normal or not -- but it looks like this PR doesn't run CI checks at all (I'd feel a bit safer if it was actually running CI on a change like this).
It's the whole mining prevention measure implemented by GitHub. For first-time contributors, the CI needs a maintainer's approval to run. I've approved this workflow - it should pass in a moment, I will land this and you won't have that problem again.
SUMMARY
prettier-plugin-packagejson
prettier pluginuseUnknownInCatchVariables
typescript ruleDETAILS
I am open to pushback on this, but I think in general, using
package.json
as an unstructured grab-bag is less discoverable than using tool-specific configuration files. So I was hoping to split out.prettierrc.js
into its own file in the root.It would also be nice to add
prettier-plugin-packagejson
-- it's very opinionated, as it wraps the opinionatedsort-package-json
utility, but I've found it really nice to just give in and let VSCode auto-sort my whole packagejson every time I touch it.Last, I think we (and everyone else) should turn off
useUnknownInCatchVariables
. Notably, even the TypeScript codebase itself turns this off -- the extra safety is not worth the hassle until TS starts offering some better assumptions (like at least being able to specifyerr: Error
).