mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-16 19:49:48 +08:00
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:
parent
493863240a
commit
50884a0ace
2 changed files with 7 additions and 2 deletions
|
@ -14,7 +14,9 @@
|
|||
"ignorePatterns": [
|
||||
"backend/__tests__/**/*",
|
||||
"backend/setup-tests.ts",
|
||||
"backend/jest.config.ts"
|
||||
"backend/jest.config.ts",
|
||||
"**/*.css",
|
||||
"**/*.scss"
|
||||
],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue