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.
ci(linting): remove unnecessary `git add` command during linting
haitao(lj)d9d4e6a2046c
diff --git a/ui/.lintstagedrc.json b/ui/.lintstagedrc.jsonindex 573dc381..a456fe58 100644--- a/ui/.lintstagedrc.json+++ b/ui/.lintstagedrc.json@@ -1,5 +1,5 @@{- "*.{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"]+ "*.{js,jsx,ts,tsx}": ["eslint --cache --fix"],+ "*.{js,jsx,scss,md,json}": ["prettier --write"],+ "*.ts?(x)": ["prettier --parser=typescript --write"]}