fix: correct code after adding linting config

This commit is contained in:
Riccardo
2024-05-16 13:49:23 +02:00
parent a9d8923518
commit e0e5aa7801
6 changed files with 62 additions and 35 deletions

View File

@@ -7,7 +7,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --config .prettierrc 'app/' --write",
"format": "prettier --config .prettierrc '**/*.{ts,tsx,json}' --write",
"typecheck": "tsc --noEmit",
"prepare": "husky install"
},
@@ -40,10 +40,10 @@
"typescript": "^5"
},
"lint-staged": {
"*.ts": [
"eslint --quiet --fix"
"*.{ts,tsx}": [
"eslint"
],
"*.{json,ts}": [
"*.{json,ts,tsx}": [
"prettier --write --ignore-unknown"
]
}