Skip to content

Commit

Permalink
Improve linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rtsao committed Oct 24, 2017
1 parent 7d0f5b6 commit fb7ee1d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"env": {
"node": true,
"es6": true
},
"plugins": [
"prettier"
],
Expand Down
2 changes: 2 additions & 0 deletions __tests__/validate-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* LICENSE file in the root directory of this source tree.
*/

/* eslint-env jest */

const t = require('assert');

const isValidTitle = require('../validate-title.js');
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = robot => {
robot.on('pull_request.edited', check);

async function check(context) {
const pr = context.payload.pull_request;
const passed = isValidTitle(pr.title);
setStatus(context, passed);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"compromise": "^10.7.2",
"probot": "^0.11.0"
"probot": "^3.0.0"
},
"devDependencies": {
"eslint": "^4.8.0",
Expand Down

0 comments on commit fb7ee1d

Please sign in to comment.