Skip to content

Commit f475ea9

Browse files
committed
Restore jshint config (for Code Climate)
1 parent 0860e59 commit f475ea9

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

.jshintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/**

.jshintrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"bitwise": true,
3+
"camelcase": true,
4+
"curly": true,
5+
"esnext": true,
6+
"immed": true,
7+
"newcap": true,
8+
"noarg": true,
9+
"node": true,
10+
"strict": false,
11+
"undef": true,
12+
"unused": "vars",
13+
14+
"-W100": true
15+
}

build/build.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ let babelOpts = {
1919

2020
let code = `
2121
(function(factory) {
22-
if (typeof module !== 'undefined' && module.exports)
22+
if (typeof module !== 'undefined' && module.exports) {
2323
module.exports = factory();
24-
else if (typeof define == "function" && typeof define.amd == "object")
24+
} else if (typeof define === "function" && typeof define.amd === "object") {
2525
define("json.sortify", factory);
26-
else
26+
} else {
2727
JSON.sortify = factory();
28+
}
2829
})(function() {
2930
${factory.replace(/\bmodule\s*\.\s*exports\s*=/, 'return ')}
3031
});`;

test/.jshintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"browser": true,
3+
"mocha": true,
4+
5+
"-W008": true
6+
}

0 commit comments

Comments
 (0)