add prettier check

This commit is contained in:
Zamitto 2024-05-15 21:58:41 -03:00
parent f3f68e9009
commit 16b9c9d340
2 changed files with 4 additions and 0 deletions

View File

@ -26,3 +26,6 @@ jobs:
- name: Lint
run: yarn lint
- name: Format check
run: yarn format-check

View File

@ -12,6 +12,7 @@
"type": "module",
"scripts": {
"format": "prettier --write .",
"format-check": "prettier --check .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",