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"