Skip to content

Commit cc3e6f2

Browse files
chore: added more aliases for fixing linting/formatting issues
eslint uses `--fix` and prettier uses `--write` thus I added aliases for both `fix`, and `write` for both styling problems to not confuse anyone.
1 parent a3a3724 commit cc3e6f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@
4040
"lint": "npm run --silent lint:check --",
4141
"lint:check": "eslint '{src,lib,test}/**/*.{js,ts}' --cache --cache-location ./.cache/eslint/",
4242
"lint:write": "eslint '{src,lib,test}/**/*.{js,ts}' --cache --cache-location ./.cache/eslint/ --fix",
43+
"lint:fix": "npm run --silent lint:write --",
4344
"format": "npm run --silent format:write --",
4445
"format:check": "prettier '{src,lib,test}/**/*.{js,ts}' --check",
45-
"format:write": "prettier '{src,lib,test}/**/*.{js,ts}' --write"
46+
"format:write": "prettier '{src,lib,test}/**/*.{js,ts}' --write",
47+
"format:fix": "npm run --silent format:write --"
4648
},
4749
"dependencies": {
4850
"chalk": "^5.6.2",

0 commit comments

Comments
 (0)