diff --git a/label.js b/label.js index b381f43c..75bf1fa5 100644 --- a/label.js +++ b/label.js @@ -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); } ) diff --git a/package-lock.json b/package-lock.json index 59a110aa..dab5c1c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -148,6 +148,14 @@ "once": "^1.4.0" } }, + "eslint-plugin-prettier": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.1.tgz", + "integrity": "sha512-A+TZuHZ0KU0cnn56/9mfR7/KjUJ9QNVXUhwvRFSR7PGPe0zQR6PTkmyqg1AtUUEOzTqeRsUwyKFh0oVZKVCrtA==", + "requires": { + "prettier-linter-helpers": "^1.0.0" + } + }, "execa": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", @@ -162,6 +170,11 @@ "strip-eof": "^1.0.0" } }, + "fast-diff": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", + "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==" + }, "get-stream": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", @@ -263,6 +276,14 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" }, + "prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "requires": { + "fast-diff": "^1.1.2" + } + }, "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", diff --git a/package.json b/package.json index 53e601e6..25a7dcd2 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } }