0

I have an alias set as follows:

alias ppp='prettier --write "**/*.js"'

I want it also to do all my .ts files. I'm quite inept at wild card expressions sadly.

2 Answers 2

1

Or, if you're using bash or something like it, you could try:

alias ppp='prettier --write "**/*.{js,ts}"'

1
  • 1
    Thanks (and thanks for not making fun of my question). Next time I'll know. My trick count is now ++ Commented Feb 18, 2022 at 2:05
1

You could do something like this:

alias ppp='prettier --write "**/*.js";prettier --write "**/*.ts"'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .