Skip to content

Commit 94b0f14

Browse files
committed
Add format script for code formatting and lint fixing
Introduce a new "format" script in package.json to streamline the process of applying Prettier fixes and lint fixes in one command. This enhances developer efficiency by combining two common formatting tasks into a single step.
1 parent 5717e85 commit 94b0f14

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
"lint": "eslint .",
1414
"lint:fix": "eslint --fix .",
1515
"pret:fix": "prettier --write .",
16+
"format": "npm run pret:fix && npm run lint:fix",
1617
"build": "npm run lint && npm run clean && rollup -c rollup.config.js --bundleConfigAsCjs",
1718
"pub": "npm run build && np --no-tests",
1819
"dev": "next dev -p 8888",

0 commit comments

Comments
 (0)