Skip to content

Commit 08aff94

Browse files
refactor: use prettier to format code
1 parent 0fcc541 commit 08aff94

31 files changed

+1969
-1077
lines changed

.eslintrc.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
{
2-
"extends": "standard",
2+
"extends": "prettier",
33
"parser": "babel-eslint",
44
"env": {
55
"node": true,
66
"browser": true
7-
},
8-
"rules": {
9-
"yoda": 0,
10-
"semi": [2, "always"],
11-
"no-extra-semi": 2,
12-
"semi-spacing": [2, { "before": false, "after": true }]
137
}
148
}

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const FILES_TO_CLEAN = [
3737
'test/support/public/engine.io.js'
3838
];
3939

40-
gulp.task('test', ['lint'], function () {
40+
gulp.task('test', [], function () {
4141
if (process.env.hasOwnProperty('BROWSERS')) {
4242
return testZuul();
4343
} else {

lib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Socket = require('./socket');
1+
const Socket = require("./socket");
22

33
module.exports = (uri, opts) => new Socket(uri, opts);
44

@@ -9,6 +9,6 @@ module.exports = (uri, opts) => new Socket(uri, opts);
99

1010
module.exports.Socket = Socket;
1111
module.exports.protocol = Socket.protocol; // this is an int
12-
module.exports.Transport = require('./transport');
13-
module.exports.transports = require('./transports/index');
14-
module.exports.parser = require('engine.io-parser');
12+
module.exports.Transport = require("./transport");
13+
module.exports.transports = require("./transports/index");
14+
module.exports.parser = require("engine.io-parser");

0 commit comments

Comments
 (0)