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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",
};

View File

@ -204,7 +204,7 @@
"gulp-zopfli-green": "^3.0.1",
"html-minifier": "^4.0.0",
"husky": "^1.3.1",
"lint-staged": "^8.1.5",
"lint-staged": "^10.5.4",
"lit-analyzer": "^1.2.1",
"lodash.template": "^4.5.0",
"magic-string": "^0.25.7",
@ -250,17 +250,6 @@
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"linters": {
"*.{js,ts,json,css,md}": [
"prettier --write",
"git add"
]
},
"ignore": [
"translations/**"
]
},
"prettier": {
"trailingComma": "es5",
"arrowParens": "always"

576
yarn.lock

File diff suppressed because it is too large Load Diff