Skip to content

Commit c47ca4e

Browse files
committed
jshint で lint をかける
1 parent 14dd175 commit c47ca4e

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.jshintrc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"strict": true,
23
"curly": true,
34
"eqeqeq": true,
45
"immed": true,
@@ -10,5 +11,13 @@
1011
"unused": true,
1112
"boss": true,
1213
"eqnull": true,
13-
"node": true
14+
"node": true,
15+
"globals": {
16+
"describe": false,
17+
"it": false,
18+
"before": false,
19+
"after": false,
20+
"beforeEach": false,
21+
"afterEach": false
22+
}
1423
}

lib/sample.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
function Sample() {
24
this.status = true;
35
}

test/SampleTest.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
'use strict';
2+
13
var assert = require('power-assert');
24

3-
var Sample = require('../lib/sample.js');
5+
var Sample = require('../lib/sample');
46

57
describe('Sample', function () {
68
var sut;

0 commit comments

Comments
 (0)