Skip to content

Commit

Permalink
chore(infra): format all staged files on precommit
Browse files Browse the repository at this point in the history
format files

ISSUES CLOSED: #927
  • Loading branch information
anshumanv committed Jun 5, 2019
1 parent 1b49075 commit 2a2e9a1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions package.json
Expand Up @@ -35,8 +35,8 @@
"commit": "git-cz",
"docs": "typedoc",
"format": "npm run format:js && npm run format:ts",
"format:ts": "prettier-eslint ./bin/*.js ./bin/**/*.js ./test/**/*.js ./packages/**/**/*.js ./packages/**/*.js --write",
"format:js": "prettier-eslint ./packages/**/**/*.ts ./packages/**/*.ts ./packages/**/**/**/*.ts --write",
"format:js": "prettier-eslint ./bin/*.js ./bin/**/*.js ./test/**/*.js ./packages/**/**/*.js ./packages/**/*.js --write",
"format:ts": "prettier-eslint ./packages/**/**/*.ts ./packages/**/*.ts ./packages/**/**/**/*.ts --write",
"lint": "eslint \"./bin/*.js\" \"./bin/**/*.js\" \"./test/**/*.js\" \"packages/**/!(node_modules)/*.ts\" \"packages/**/!(node_modules)/**/*.ts\"",
"postinstall": "node ./bin/opencollective.js",
"pretest": "npm run build && npm run lint",
Expand All @@ -63,6 +63,14 @@
"{packages,bin}/**/!(__testfixtures__)/**.js": [
"eslint --fix",
"git add"
],
"*.ts": [
"npm run format:ts",
"got add"
],
"*.js": [
"npm run format:js",
"got add"
]
},
"jest": {
Expand Down

0 comments on commit 2a2e9a1

Please sign in to comment.