Skip to content

Commit 288a4cd

Browse files
committed
Use Prettier to format all supported file types
Prettier is a general-purpose formatter tool. There is no reason to restrict it to only .ts files.
1 parent eefb8a4 commit 288a4cd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/dist/
2+
/lib/
3+
/node_modules/

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"description": "Setup Task action",
66
"main": "lib/main.js",
77
"scripts": {
8-
"format": "prettier --write **/*.ts",
9-
"format-check": "prettier --check **/*.ts"
8+
"format": "prettier --write .",
9+
"format-check": "prettier --check ."
1010
},
1111
"repository": {
1212
"type": "git",

0 commit comments

Comments
 (0)