Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

chore(ui): update .lintstagedrc.json

robinf13bd2ed0661
diff --git a/ui/.lintstagedrc.json b/ui/.lintstagedrc.json
index fce648a8..573dc381 100644
--- a/ui/.lintstagedrc.json
+++ b/ui/.lintstagedrc.json
@@ -1,14 +1,5 @@
{
- "*.{js,jsx,ts,tsx}": [
- "cd ui && eslint --cache --fix",
- "git add"
- ],
- "*.{js,jsx,scss,md,json}": [
- "cd ui && prettier --write",
- "git add"
- ],
- "*.ts?(x)": [
- "cd ui && prettier --parser=typescript --write",
- "git add"
- ]
+ "*.{js,jsx,ts,tsx}": ["eslint --cache --fix", "git add"],
+ "*.{js,jsx,scss,md,json}": ["prettier --write", "git add"],
+ "*.ts?(x)": ["prettier --parser=typescript --write", "git add"]
}