1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00

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.
This commit is contained in:
Ilya Grigoriev 2024-07-08 08:26:57 -07:00 committed by GitHub
parent 36e5263c00
commit be7ab8a58f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 \"/^\\^/\"",