From be7ab8a58f9152e42f1d56f9663569473c19aefe Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Mon, 8 Jul 2024 08:26:57 -0700 Subject: [PATCH] Added `npm run fix` to fix ESLint errors (#7337) This is the most helpful command I have figured out so far. Let me know if there is a better way to fix formatting errors, e.g. an auto-formatting tool you use. --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 1b3aed2c42c..650a0dfa9b3 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,9 @@ "check:style": "run-p check:style:*", "check:style:scss": "stylelint \"src/**/*.scss\"", "check:style:ts": "eslint --cache \"src/**/*.ts\"", + "fix": "run-p fix:*", + "fix:style": "run-p fix:style:*", + "fix:style:ts": "eslint --cache \"src/**/*.ts\" --fix", "start": "ts-node -T tools/build --verbose --all --dirty --watch", "upgrade": "run-s upgrade:*", "upgrade:bump": "ncu --upgrade --filterVersion \"/^\\^/\"",