From 99513fa38a51ebfe32f5784e744d17746baced09 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 | 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 \"/^\\^/\"",