From e8c27056dec9061987a987c573aa19a4503d041b Mon Sep 17 00:00:00 2001 From: David Braun Date: Wed, 6 Dec 2017 14:38:07 -0500 Subject: [PATCH] Add ESLint. --- .eslintrc.js | 13 +++++++++++++ package.json | 12 ++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..e7b76d3 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,13 @@ +module.exports = { + env: { + es6: true, + mocha: true, + node: true + }, + parserOptions: { + ecmaVersion: 2017 + }, + rules: { + "no-unused-vars": "warn" + } +}; diff --git a/package.json b/package.json index d164b9e..1d76785 100644 --- a/package.json +++ b/package.json @@ -13,11 +13,16 @@ "dependencies": {}, "devDependencies": { "@nodeguy/assert": "0.1.4", + "eslint": "4.12.1", "mocha": "4.0.1", "nyc": "11.3.0" }, "homepage": "https://github.com/NodeGuy/channel", - "keywords": ["CSP", "channel", "concurrency"], + "keywords": [ + "CSP", + "channel", + "concurrency" + ], "license": "Apache-2.0", "main": "lib/index.js", "repository": { @@ -33,6 +38,9 @@ "functions": 100, "lines": 100, "statements": 100, - "reporter": ["html", "text-summary"] + "reporter": [ + "html", + "text-summary" + ] } }