Skip to content

Commit 4d46092

Browse files
authored
chore: add script to fix lint (#3022)
1 parent 86d4bf0 commit 4d46092

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
},
1616
"scripts": {
1717
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css}\" --list-different",
18+
"lint:prettier:fix": "npm run lint:prettier -- --write",
1819
"lint:js": "eslint . --cache",
20+
"lint:js:fix": "npm run lint:js -- --fix",
1921
"lint": "npm-run-all -l -p \"lint:**\"",
22+
"lint:fix": "npm run lint:prettier:fix && npm run lint:js:fix",
2023
"lint:type": "tsc --noEmit",
2124
"commitlint": "commitlint --from=master",
2225
"test:only": "jest --forceExit",

0 commit comments

Comments
 (0)