You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a few projects that use husky as well as prettier-plugin-sh. Files like .husky/pre-commit contain shell scripts but they are not assigned sh parser by Prettier out of the box. So I have to do this in prettier.config.js:
👋 folks, thanks for this plugin!
WDYT of supporting some common file patterns out of the box, e.g.
.husky/*
? This glob could go somewhere here:prettier/scripts/languages.ts
Lines 6 to 37 in 3548bb2
I have a few projects that use
husky
as well asprettier-plugin-sh
. Files like.husky/pre-commit
contain shell scripts but they are not assignedsh
parser by Prettier out of the box. So I have to do this inprettier.config.js
:It’d be cool to avoid
overrides
in this trivial case, which I guess could be done by tweaking the plugin. Happy to submit a PR if this makes sense.The text was updated successfully, but these errors were encountered: