Skip to content

Commit

Permalink
Update husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonheecs committed Nov 22, 2018
1 parent 78ac146 commit 8ffe1f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"lint": "eslint src/*.js test/*.js",
"fix-lint": "eslint src/*.js test/*.js --fix",
"prepare": "./node_modules/babel-cli/bin/babel.js src --out-dir lib",
"precommit": "npm run lint",
"test": "nyc --reporter=html --reporter=text mocha --require babel-core/register",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
Expand Down Expand Up @@ -53,5 +52,10 @@
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"random-words": "^1.1.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
}
}
2 changes: 1 addition & 1 deletion test/graph.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import {Graph} from '../src/index.js';
import { Graph } from '../src/index.js';

const expect = require('chai').expect;

Expand Down

0 comments on commit 8ffe1f8

Please sign in to comment.