fix pre-commit prettier

This commit is contained in:
Samuel Colvin
2023-11-12 19:32:17 +00:00
parent 759a8e36ad
commit 9e905332f3
2 changed files with 5 additions and 6 deletions

View File

@@ -13,19 +13,18 @@ repos:
hooks:
- id: frontend-prettier
name: frontend-prettier
types_or: [javascript, jsx, ts, tsx]
types_or: [javascript, jsx, ts, tsx, css, json, markdown]
entry: npm run prettier
language: system
pass_filenames: false
- id: frontend-lint
name: frontend-lint
types_or: [javascript, jsx, ts, tsx]
types_or: [ts, tsx]
entry: npm run lint-fix
language: system
pass_filenames: false
- id: frontend-typecheck
name: frontend-typecheck
types_or: [javascript, jsx, ts, tsx]
types_or: [ts, tsx]
entry: npm run typecheck
language: system
pass_filenames: false

View File

@@ -11,8 +11,8 @@
"typewatch": "tsc --noEmit --watch",
"lint": "eslint frontend --ext .ts,.tsx --report-unused-disable-directives --max-warnings 0",
"lint-fix": "npm run lint -- --fix",
"prettier": "prettier . --write -- '**/*.{ts,tsx,js,css,json,md}'",
"format": "npm run prettier && npm run lint-fix"
"prettier": "prettier --write",
"format": "npm run prettier -- . && npm run lint-fix"
},
"prettier": {
"singleQuote": true,