0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

chore(ui): add tsc in lint-staged script

This commit is contained in:
Gao Sun 2021-07-25 22:39:45 +08:00
parent 9752dacf85
commit bbdde8b68e
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31
2 changed files with 5 additions and 5 deletions

View file

@ -0,0 +1,4 @@
module.exports = {
'*.ts?(x)': ['eslint --format pretty --cache --fix', () => 'tsc -p tsconfig.json --noEmit'],
"*.scss": "stylelint --fix"
};

View file

@ -58,9 +58,5 @@
"stylelint": {
"extends": "@logto/eslint-config-react/.stylelintrc"
},
"prettier": "@logto/eslint-config/.prettierrc",
"lint-staged": {
"*.{ts,tsx}": "eslint --format pretty --cache --fix",
"*.scss": "stylelint --fix"
}
"prettier": "@logto/eslint-config/.prettierrc"
}