Skip to content

Commit 343eb6c

Browse files
committed
Switch to eslint, instead of JSCS and JSHint
This branch does not currently pass - the style configuration is very different.
1 parent 5951059 commit 343eb6c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.eslintrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
extends: 'loris/es5',
3+
root: true,
4+
env: {
5+
node: true
6+
}
7+
};

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"contributors": [
88
"Alexander Tarmolov <[email protected]> (http://tarmolov.ru/)",
99
"Denis Khananein <[email protected]> (http://zloy.me/)",
10-
"Ikonnikov Konstantin"
10+
"Ikonnikov Konstantin",
11+
"Robert (Jamie) Munro <[email protected]>"
1112
],
1213
"keywords": [
1314
"git",
@@ -38,7 +39,7 @@
3839
"scripts": {
3940
"postinstall": "./bin/git-hooks --install",
4041
"preuninstall": "./bin/git-hooks --uninstall",
41-
"test": "jscs . && jshint . && mocha --reporter spec --recursive tests",
42+
"test": "eslint lib tests && mocha --reporter spec --recursive tests",
4243
"coverage": "istanbul cover _mocha --recursive tests"
4344
},
4445
"main": "lib/git-hooks",
@@ -49,9 +50,9 @@
4950
],
5051
"devDependencies": {
5152
"chai": "4.1.2",
53+
"eslint": "4.19.1",
54+
"eslint-config-loris": "9.1.0",
5255
"istanbul": "0.4.5",
53-
"jscs": "2.11.0",
54-
"jshint": "2.9.5",
5556
"mocha": "5.1.1"
5657
},
5758
"license": "MIT"

0 commit comments

Comments
 (0)