Skip to content

Commit 2a2e9a1

Browse files
committedJun 5, 2019
chore(infra): format all staged files on precommit
format files ISSUES CLOSED: #927
1 parent 1b49075 commit 2a2e9a1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
 

‎package.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"commit": "git-cz",
3636
"docs": "typedoc",
3737
"format": "npm run format:js && npm run format:ts",
38-
"format:ts": "prettier-eslint ./bin/*.js ./bin/**/*.js ./test/**/*.js ./packages/**/**/*.js ./packages/**/*.js --write",
39-
"format:js": "prettier-eslint ./packages/**/**/*.ts ./packages/**/*.ts ./packages/**/**/**/*.ts --write",
38+
"format:js": "prettier-eslint ./bin/*.js ./bin/**/*.js ./test/**/*.js ./packages/**/**/*.js ./packages/**/*.js --write",
39+
"format:ts": "prettier-eslint ./packages/**/**/*.ts ./packages/**/*.ts ./packages/**/**/**/*.ts --write",
4040
"lint": "eslint \"./bin/*.js\" \"./bin/**/*.js\" \"./test/**/*.js\" \"packages/**/!(node_modules)/*.ts\" \"packages/**/!(node_modules)/**/*.ts\"",
4141
"postinstall": "node ./bin/opencollective.js",
4242
"pretest": "npm run build && npm run lint",
@@ -63,6 +63,14 @@
6363
"{packages,bin}/**/!(__testfixtures__)/**.js": [
6464
"eslint --fix",
6565
"git add"
66+
],
67+
"*.ts": [
68+
"npm run format:ts",
69+
"got add"
70+
],
71+
"*.js": [
72+
"npm run format:js",
73+
"got add"
6674
]
6775
},
6876
"jest": {

0 commit comments

Comments
 (0)
Please sign in to comment.