From 343eb6c551e62e4829dcf70d040ad190765fa824 Mon Sep 17 00:00:00 2001 From: "Robert (Jamie) Munro" Date: Thu, 3 May 2018 17:57:33 +0100 Subject: [PATCH] Switch to eslint, instead of JSCS and JSHint This branch does not currently pass - the style configuration is very different. --- .eslintrc.js | 7 +++++++ package.json | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..a3da410 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: 'loris/es5', + root: true, + env: { + node: true + } +}; diff --git a/package.json b/package.json index 8d833ba..54ec777 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "contributors": [ "Alexander Tarmolov (http://tarmolov.ru/)", "Denis Khananein (http://zloy.me/)", - "Ikonnikov Konstantin" + "Ikonnikov Konstantin", + "Robert (Jamie) Munro " ], "keywords": [ "git", @@ -38,7 +39,7 @@ "scripts": { "postinstall": "./bin/git-hooks --install", "preuninstall": "./bin/git-hooks --uninstall", - "test": "jscs . && jshint . && mocha --reporter spec --recursive tests", + "test": "eslint lib tests && mocha --reporter spec --recursive tests", "coverage": "istanbul cover _mocha --recursive tests" }, "main": "lib/git-hooks", @@ -49,9 +50,9 @@ ], "devDependencies": { "chai": "4.1.2", + "eslint": "4.19.1", + "eslint-config-loris": "9.1.0", "istanbul": "0.4.5", - "jscs": "2.11.0", - "jshint": "2.9.5", "mocha": "5.1.1" }, "license": "MIT"