mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-01-31 17:39:14 +01:00
prettybat: Add support for GraphQL via Prettier
This commit is contained in:
parent
865c8b252b
commit
0d73f2abd5
@ -27,9 +27,10 @@ FORMATTERS=("prettier" "rustfmt" "shfmt" "clangformat")
|
||||
|
||||
formatter_prettier_supports() {
|
||||
case "$1" in
|
||||
.js | .jsx | \
|
||||
.js | .jsx | \
|
||||
.ts | .tsx | \
|
||||
.css | .scss | .sass | \
|
||||
.graphql | .gql | \
|
||||
.html | \
|
||||
.json | \
|
||||
.md | \
|
||||
@ -113,6 +114,7 @@ map_language_to_extension() {
|
||||
md | mdown | markdown) ext=".md" ;;
|
||||
yaml | yml) ext=".yml" ;;
|
||||
rust | rs) ext=".rs" ;;
|
||||
graphql | gql) exit=".graphql" ;;
|
||||
esac
|
||||
|
||||
echo "$ext"
|
||||
|
Loading…
Reference in New Issue
Block a user