Skip to content

Commit e0aa880

Browse files
committedMar 5, 2015
add style check with jscs
1 parent d56e236 commit e0aa880

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed
 

‎.jscsrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"esnext": true,
3+
"fileExtensions": [ ".js" ],
4+
5+
"validateLineBreaks": "LF",
6+
"validateIndentation": 4,
7+
8+
"disallowKeywords": ["with"],
9+
"disallowSpacesInsideObjectBrackets": null,
10+
"disallowImplicitTypeConversion": ["string"],
11+
12+
"excludeFiles": [
13+
"bin/**",
14+
"build/**",
15+
"node_modules/**",
16+
"test/**"
17+
]
18+
}

‎lib/parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Parser extends EventEmitter {
99
parser.parseLine(line);
1010
});
1111
tail.on('error', function(data) {
12-
console.error("error:", data);
12+
console.error("error:", data);
1313
});
1414
}
1515

‎package.json

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Utilities for Hearthstone the online card game.",
55
"main": "hearthstone.js",
66
"scripts": {
7+
"lint": "jscs .",
78
"build": "traceur --dir lib build ",
89
"test": "mocha --compilers js:mocha-traceur --reporter spec test/*.js"
910
},
@@ -22,6 +23,7 @@
2223
"devDependencies": {
2324
"chai": "1.10.0",
2425
"chai-spies": "^0.5.1",
26+
"jscs": "^1.11.3",
2527
"mocha": "^2.0.1",
2628
"mocha-traceur": "2.1.0"
2729
}

0 commit comments

Comments
 (0)
Please sign in to comment.