Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Commit

Permalink
add in eslint on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy McKay committed Oct 1, 2019
1 parent 7ffa0d0 commit b1aa4b8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions label.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ async function label() {
label()
.then(
result => {
// eslint-disable-next-line no-console
console.log(`Labelled ${result} with ${requested}.`);
},
err => {
// eslint-disable-next-line no-console
console.log(err);
}
)
Expand Down
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Labels issues when they land in a repo.",
"main": "label.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint ."
},
"repository": {
"type": "git",
Expand All @@ -18,6 +19,7 @@
"homepage": "https://github.com/andymckay/labeler#readme",
"dependencies": {
"@actions/core": "^1.0.0",
"@actions/github": "^1.0.1"
"@actions/github": "^1.0.1",
"eslint-plugin-prettier": "^3.1.1"
}
}

0 comments on commit b1aa4b8

Please sign in to comment.