Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
add husky and lintstaged
Browse files Browse the repository at this point in the history
  • Loading branch information
sw-yx committed May 9, 2019
1 parent 20fa1bb commit a2229f4
Show file tree
Hide file tree
Showing 2 changed files with 6,939 additions and 4 deletions.
21 changes: 17 additions & 4 deletions package.json
Expand Up @@ -17,10 +17,6 @@
"chokidar": "^2.1.5",
"copy-template-dir": "^1.4.0",
"debug": "^4.1.1",
"npm-packlist": "^1.4.1",
"precinct": "^6.1.2",
"read-pkg-up": "^5.0.0",
"require-package-name": "^2.0.1",
"execa": "^1.0.0",
"express": "^4.16.4",
"express-logging": "^1.1.1",
Expand All @@ -35,7 +31,11 @@
"netlify": "2.4.1",
"netlify-cli-logo": "^1.0.0",
"node-fetch": "^2.3.0",
"npm-packlist": "^1.4.1",
"ora": "^3.4.0",
"precinct": "^6.1.2",
"read-pkg-up": "^5.0.0",
"require-package-name": "^2.0.1",
"resolve": "^1.10.0",
"safe-join": "^0.1.2",
"static-server": "^2.2.1",
Expand All @@ -55,6 +55,8 @@
"eslint-plugin-prettier": "^3.0.1",
"gh-release": "^3.5.0",
"globby": "^8",
"husky": "^2.2.0",
"lint-staged": "^8.1.6",
"mocha": "^5",
"nock": "^10.0.6",
"npm-run-all": "^4.1.5",
Expand Down Expand Up @@ -82,6 +84,17 @@
"@oclif/plugin-help"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/*.js": [
"npm run format",
"git add"
]
},
"repository": "netlify/netlify-dev-plugin",
"scripts": {
"format": "npm run format:prettier -- --write",
Expand Down

0 comments on commit a2229f4

Please sign in to comment.