Skip to content

Commit be17b1e

Browse files
committed
Update eslint & prettier script
1 parent afd8765 commit be17b1e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
"scripts": {
1111
"watch": "rollup -c -w",
1212
"clean": "rm -rf dist",
13-
"lint": "eslint .",
14-
"lint:fix": "eslint --fix .",
13+
"lint": "eslint --ignore-path .gitignore .",
14+
"lint:fix": "eslint --ignore-path .gitignore --fix .",
1515
"pret": "prettier -c .",
16-
"pret:fix": "prettier -w .",
17-
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc",
18-
"build": "npm run pret && npm run lint && npm run clean && rollup -c",
16+
"pret:fix": "prettier --ignore-path .gitignore --config ./.prettierrc --write './**/*.{js,jsx,ts,tsx,css,md,json}'",
17+
"code-style": "npm run pret && npm run lint",
18+
"code-style:fix": "npm run pret:fix && npm run pret:fix",
19+
"build": "npm run code-style && npm run clean && rollup -c",
1920
"pub": "npm run build && npm publish",
2021
"dev": "next dev -p 8888"
2122
},
@@ -57,6 +58,7 @@
5758
"eslint-plugin-prettier": "^4.2.1",
5859
"eslint-plugin-react": "^7.31.11",
5960
"eslint-plugin-react-hooks": "^4.6.0",
61+
"husky": "^8.0.3",
6062
"next": "^13.1.1",
6163
"postcss": "^8.4.19",
6264
"prettier": "^2.8.0",

0 commit comments

Comments
 (0)