Merge pull request #397 from hydralauncher/add-prettier-check-on-pipeline

add prettier check on ci
This commit is contained in:
Zamitto 2024-05-15 22:09:06 -03:00 committed by GitHub
commit 29d9c43834
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 63 additions and 60 deletions

View File

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

View File

@ -19,7 +19,6 @@
[![uk-UA](https://img.shields.io/badge/lang-uk--UA-blue)](README.uk-UA.md)
[![be](https://img.shields.io/badge/lang-be-orange)](README.be.md)
![Hydra Catalogue](./docs/screenshot.png)
</div>

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",