Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

chore(lint-staged): run eslint --fix, then prettier, in order on ts and tsx files (#9947)

Cindy Zhangf22f5d211c73
diff --git a/package.json b/package.json
index f691f4d002..818229d6a0 100644
--- a/package.json
+++ b/package.json
@@ -148,7 +148,10 @@
},
"packageManager": "[email protected]",
"lint-staged": {
- "*.{ts,tsx}": "eslint --cache --fix",
- "*.{ts,tsx,md}": "prettier --write"
+ "*.{ts,tsx}": [
+ "eslint --cache --fix",
+ "prettier --write"
+ ],
+ "*.md": "prettier --write"
}
}