Add tsc and eslint to pre-commit (#9131)

This commit is contained in:
Bram Kragten
2021-05-08 00:07:05 +02:00
committed by GitHub
parent d308c5d9b9
commit 83cabcac28
3 changed files with 226 additions and 368 deletions

5
lint-staged.config.js Normal file
View File

@ -0,0 +1,5 @@
module.exports = {
"*.ts": () => "tsc -p tsconfig.json",
"*.{js,ts}": "eslint --fix",
"!(/translations)*.{js,ts,json,css,md,html}": "prettier --write",
};