build: fix pre commit issues

Not calling eslint on style, html or json files.
Ignoring style files in es config just in case.
This commit is contained in:
Miodec 2023-08-17 11:13:56 +02:00
parent 493863240a
commit 50884a0ace
2 changed files with 7 additions and 2 deletions

View file

@ -14,7 +14,9 @@
"ignorePatterns": [
"backend/__tests__/**/*",
"backend/setup-tests.ts",
"backend/jest.config.ts"
"backend/jest.config.ts",
"**/*.css",
"**/*.scss"
],
"extends": [
"eslint:recommended",

View file

@ -54,7 +54,10 @@
"typescript": "4.9.5"
},
"lint-staged": {
"*.{ts,js,json,css,html}": [
"*.{json,scss,css,html}": [
"prettier --write"
],
"*.{ts,js}": [
"prettier --write",
"eslint"
]