mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 15:53:56 +00:00
Add tsc and eslint to pre-commit (#9131)
This commit is contained in:
5
lint-staged.config.js
Normal file
5
lint-staged.config.js
Normal 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",
|
||||
};
|
Reference in New Issue
Block a user