Skip to content

Commit 8736ac2

Browse files
authoredMay 25, 2021
chore: add scripts for fixing lint (#129)
1 parent 2fc216f commit 8736ac2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@
2525
"build": "npm-run-all -p \"build:**\"",
2626
"commitlint": "commitlint --from=master",
2727
"security": "npm audit",
28-
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
28+
"fmt:check": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
2929
"lint:js": "eslint --cache .",
3030
"lint:types": "tsc --pretty --noEmit",
31-
"lint": "npm-run-all -l -p \"lint:**\"",
31+
"lint": "npm-run-all lint:js lint:types fmt:check",
32+
"fmt": "npm run fmt:check -- --write",
33+
"fix:js": "npm run lint:js -- --fix",
34+
"fix": "npm-run-all fix:js fmt",
3235
"test:only": "cross-env NODE_ENV=test jest",
3336
"test:watch": "npm run test:only -- --watch",
3437
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",

0 commit comments

Comments
 (0)
Please sign in to comment.