From 305b1607691cb153f1819794bceada35f6e43702 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Sun, 7 Jul 2024 19:02:00 -0700 Subject: [PATCH] dev environment: Add `npm run fix` to fix (some) esLint errors 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 1b3aed2c42c..1004765fa20 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,8 @@ "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: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 \"/^\\^/\"",