Skip to content

Commit aa5192f

Browse files
committed
Add a script for npm run format.
I no longer use ESLint personally, so I rely on the commandline for formatting projects like this. A formatting command makes this easier.
1 parent 538b108 commit aa5192f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"scripts": {
1414
"clean": "rm -rf dist",
1515
"lint": "eslint . --ext .js,.ts && tsc --noEmit",
16+
"format": "eslint --fix . --ext .js,.ts",
1617
"prebuild": "npm run clean && npm run lint && mkdir dist",
1718
"build": "tsc",
1819
"pretest": "npm run build",

0 commit comments

Comments
 (0)