Skip to content

Commit 7bbb51e

Browse files
author
Vitor Hugo Salgado
committed
build: simplify code formatter command
1 parent d074565 commit 7bbb51e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ check:
3434

3535
.PHONY: fmt
3636
fmt: # Format code
37-
@yarn prettier
37+
@yarn fmt
3838

3939
.PHONY: lint
4040
lint: # Lint code

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"lint:fix": "yarn lint -- --fix",
1818
"lint:css": "stylelint \"**/*.{css}\" --allow-empty-input",
1919
"lint:css:fix": "yarn lint:css -- --fix",
20-
"lint:ci": "yarn lint && yarn lint:css && yarn prettier:ci",
21-
"prettier": "prettier 'build/**' 'configs/**' 'src/**' 'e2e/**' --write --ignore-unknown",
22-
"prettier:ci": "yarn prettier --check",
20+
"lint:ci": "yarn lint && yarn lint:css && yarn fmt:ci",
21+
"fmt": "prettier 'build/**' 'configs/**' 'src/**' 'e2e/**' --write --ignore-unknown",
22+
"fmt:ci": "yarn fmt --check",
2323
"prepare": "husky install",
2424
"postinstall": "husky install",
2525
"prepublishOnly": "pinst --disable",

0 commit comments

Comments
 (0)