Skip to content

Commit a3f792d

Browse files
committed
chore: simplify project npm scripts
1 parent d2677bc commit a3f792d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@
3030
"src"
3131
],
3232
"scripts": {
33-
"lint": "yarn run lint:eslint && yarn run lint:prettier",
34-
"lint:fix": "yarn run lint:eslint:fix && yarn run lint:prettier:fix",
35-
"lint:eslint": "eslint --report-unused-disable-directives \"**/*.js\"",
36-
"lint:eslint:fix": "yarn run lint:eslint --fix",
37-
"lint:prettier": "prettier --check \"**/*.{js,jsx,json,md}\"",
38-
"lint:prettier:fix": "prettier --write \"**/*.{js,jsx,json,md}\""
33+
"lint": "eslint --report-unused-disable-directives \"**/*.js\"",
34+
"lint:fix": "yarn run lint:eslint --fix",
35+
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
36+
"format:heck": "prettier --check \"**/*.{js,jsx,json,md}\""
3937
},
4038
"dependencies": {
4139
"ansi-html": "^0.0.7",
@@ -54,7 +52,13 @@
5452
"webpack-hot-middleware": "^2.25.0"
5553
},
5654
"peerDependencies": {
57-
"react-refresh": ">= 0.7"
55+
"react-refresh": ">= 0.7",
56+
"webpack-hot-middleware": "^2.25.0"
57+
},
58+
"peerDependenciesMeta": {
59+
"webpack-hot-middleware": {
60+
"optional": true
61+
}
5862
},
5963
"engines": {
6064
"node": ">= 8.x"

0 commit comments

Comments
 (0)