Skip to content

Commit

Permalink
Merge pull request #2 from uber-web/fix_lint
Browse files Browse the repository at this point in the history
Fix lint
  • Loading branch information
KevinGrandon authored Nov 6, 2017
2 parents 26f8502 + c62666b commit b0309b8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
25 changes: 25 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"env": {
"node": true,
"es6": true
},
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": true
}]
}
}

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = robot => {
}
}

const status = await hasLicense()
const status = (await hasLicense())
? {
state: 'success',
description: 'Repo has a LICENSE file',
Expand Down
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,21 @@
"repository": "https://github.com/uber-web/probot-app-license.git",
"scripts": {
"start": "probot run ./index.js",
"test": "jest && standard"
"test": "npm run lint && jest",
"lint": "eslint ."
},
"dependencies": {
"probot": "^3.0.0"
},
"devDependencies": {
"eslint": "^4.10.0",
"eslint-plugin-prettier": "^2.3.1",
"jest": "^21.2.1",
"localtunnel": "^1.8.2",
"standard": "^10.0.3"
"prettier": "^1.7.4"
},
"engines": {
"node": ">= 7.7.0",
"npm": ">= 4.0.0"
},
"standard": {
"env": [
"jest"
]
}
}

0 comments on commit b0309b8

Please sign in to comment.