Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit 14ea311

Browse files
committed
Update eslint and fix lint errors
1 parent 98c90ea commit 14ea311

File tree

7 files changed

+9
-6
lines changed

7 files changed

+9
-6
lines changed

js/.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ rules:
2323
no-undef: 2
2424
no-labels: 2
2525
no-multi-spaces: 2
26+
semi: [2, "always"]
2627
radix: 2
2728
yoda: 0
2829
new-cap: [2, { "capIsNew": false }]

js/core/set-time.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ runtime.dns.resolve('pool.ntp.org', {}, function(err, res) {
5151
var date = new Date('Jan 01 1900 GMT');
5252

5353
__SYSCALL.setTime((date.getTime() + milli) * 1000);
54-
}
54+
};
5555
setTimeout(function() {
5656
socket.send(ip, 123, data);
5757
}, 1000);

js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"homepage": "http://runtimejs.org",
2121
"devDependencies": {
22-
"eslint": "^1.0.0-rc-1",
22+
"eslint": "^1.8.0",
2323
"eslint-plugin-runtime-internal": "*",
2424
"runtime-tools": "*",
2525
"runtimeify": "*",

js/test/unit/net/interface.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ test('create interface', function(t) {
2727
t.end();
2828
});
2929

30-
test.skip('interface handle echo request', function(t) {
30+
/*
31+
test.skip('interface handle echo request', function(t) {
3132
t.plan(1);
3233
var intf = new Interface(MACAddress.ZERO);
3334
intf.disableArp();
@@ -65,3 +66,4 @@ test.skip('interface handle echo request', function(t) {
6566
6667
intf.receive(request);
6768
});
69+
*/

js/test/unit/script/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test('some math functions (in case they rely on embedded libc)', function(t) {
2929
t.equal((Math.atan(1, 0) * 4).toFixed(2), '3.14');
3030
t.equal(Math.pow(2, 10), 1024);
3131
t.equal(Math.sqrt(81), 9);
32-
t.equal(Math.exp(1).toFixed(2), '2.72')
32+
t.equal(Math.exp(1).toFixed(2), '2.72');
3333
t.end();
3434
});
3535

js/test/unit/timers/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test('clearTimeout', function(t) {
3535

3636
test('clearInterval', function(t) {
3737
var timer = setInterval(function() {
38-
t.fail('should not call callback')
38+
t.fail('should not call callback');
3939
throw new Error('should not call callback');
4040
}, 0);
4141
clearInterval(timer);

js/utils/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ exports.getRandomUint8 = function() {
3232
*/
3333
exports.timeNow = function() {
3434
return Math.floor(performance.now());
35-
}
35+
};

0 commit comments

Comments
 (0)