Skip to content

Commit

Permalink
Add jshint to dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajedi32 committed Apr 25, 2016
1 parent a5e1036 commit 358bd4a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ script:
- npm test
- make lint-tests
- make lint-code
before_install:
- npm install -g jshint
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ test-debug: node_modules
@$(mocha) debug

# Run jshint against the project
lint-code:
jshint lib/
lint-tests:
jshint test/
lint-code: node_modules
node_modules/.bin/jshint lib/
lint-tests: node_modules
node_modules/.bin/jshint test/
lint: lint-code lint-tests

#
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "A Metalsmith plugin to read file metadata from frontmatter",
"main": "lib/index.js",
"scripts": {
"test": "make test"
"test": "make test",
"lint": "jshint lib/ && jshint test/"
},
"repository": {
"type": "git",
Expand All @@ -26,6 +27,7 @@
"object-assign": "^4.0.1"
},
"devDependencies": {
"jshint": "^2.9.2",
"metalsmith": "^2.0.1",
"mocha": "^2.3.2"
}
Expand Down

0 comments on commit 358bd4a

Please sign in to comment.