Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
chore: Add lint-staged and husky (#314)
Browse files Browse the repository at this point in the history
Add lint-staged with an auto-fix configuration for all JS files.
See https://github.com/okonet/lint-staged
  • Loading branch information
okonet authored and eliperelman committed Sep 12, 2017
1 parent 01d9ae9 commit d854f94
Show file tree
Hide file tree
Showing 2 changed files with 299 additions and 10 deletions.
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"docs:deploy": "yarn docs:build && gh-pages --dist _book --remote upstream",
"docs:serve": "gitbook serve",
"release": ".scripts/publish",
"test": "nyc --reporter lcov ava packages/*/test"
"test": "nyc --reporter lcov ava packages/*/test",
"precommit": "lint-staged"
},
"devDependencies": {
"ava": "^0.19.1",
Expand All @@ -40,10 +41,18 @@
"gitbook-plugin-npmsearchlist": "^1.0.0",
"gitbook-plugin-prism": "^2.2.0",
"graph-data-structure": "^0.8.0",
"husky": "^0.14.3",
"lint-staged": "^4.1.3",
"nyc": "^11.0.2",
"oao": "0.8.4",
"prettier": "^1.4.4",
"semver": "^5.3.0",
"webpack": "^2.6.1"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
}
}
Loading

0 comments on commit d854f94

Please sign in to comment.