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:
parent
9752dacf85
commit
bbdde8b68e
2 changed files with 5 additions and 5 deletions
4
packages/ui/lint-staged.config.js
Normal file
4
packages/ui/lint-staged.config.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
module.exports = {
|
||||||
|
'*.ts?(x)': ['eslint --format pretty --cache --fix', () => 'tsc -p tsconfig.json --noEmit'],
|
||||||
|
"*.scss": "stylelint --fix"
|
||||||
|
};
|
|
@ -58,9 +58,5 @@
|
||||||
"stylelint": {
|
"stylelint": {
|
||||||
"extends": "@logto/eslint-config-react/.stylelintrc"
|
"extends": "@logto/eslint-config-react/.stylelintrc"
|
||||||
},
|
},
|
||||||
"prettier": "@logto/eslint-config/.prettierrc",
|
"prettier": "@logto/eslint-config/.prettierrc"
|
||||||
"lint-staged": {
|
|
||||||
"*.{ts,tsx}": "eslint --format pretty --cache --fix",
|
|
||||||
"*.scss": "stylelint --fix"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue