This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch setup-eslint
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/setup-eslint by this push:
     new 9869c0b3 fix: delete unused commands for ui
9869c0b3 is described below

commit 9869c0b32e238e3701c2fa6e058dec1e90580722
Author: shuai <[email protected]>
AuthorDate: Fri Mar 7 11:04:57 2025 +0800

    fix: delete unused commands for ui
---
 ui/package.json | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ui/package.json b/ui/package.json
index c7d1ec1b..d5570d7a 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -6,8 +6,6 @@
   "scripts": {
     "start": "react-app-rewired start",
     "build": "node ./scripts/env.js && react-app-rewired build",
-    "lint": "eslint . --cache --fix --ext .ts,.tsx",
-    "prettier": "prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss,md}' 
--config ./.prettierrc.json",
     "pre-install": "node ./scripts/importPlugins.js && pnpm install && node 
./scripts/preinstall.js ",
     "prepare": "pnpm build:packages",
     "pre-commit": "lint-staged",
@@ -15,7 +13,8 @@
     "clean": "rm -rf node_modules && rm -rf src/plugins/**/node_modules",
     "analyze": "source-map-explorer 'build/static/js/*.js'",
     "setup-lint": "node scripts/setup-eslint.js && cd .. && husky install",
-    "format": "prettier --write \"src/**/*.{ts,tsx,css,scss,md}\"",
+    "lint": "eslint . --cache --fix --ext .ts,.tsx",
+    "prettier": "prettier --write \"src/**/*.{ts,tsx,css,scss,md}\"",
     "lint-staged": "lint-staged"
   },
   "dependencies": {

Reply via email to