Hardcode to double quotes, indent to 2 spaces (#5824)
This commit is contained in:
@@ -1,49 +1,49 @@
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
value: true
|
||||
});
|
||||
exports.default = undefined;
|
||||
|
||||
var _net = require('net');
|
||||
var _net = require("net");
|
||||
|
||||
var _net2 = babelHelpers.interopRequireDefault(_net);
|
||||
|
||||
var _events = require('events');
|
||||
var _events = require("events");
|
||||
|
||||
var _binarySerializer = require('./helpers/binary-serializer');
|
||||
var _binarySerializer = require("./helpers/binary-serializer");
|
||||
|
||||
var _binarySerializer2 = babelHelpers.interopRequireDefault(_binarySerializer);
|
||||
|
||||
// import ...
|
||||
|
||||
var Connection = function (_EventEmitter) {
|
||||
babelHelpers.inherits(Connection, _EventEmitter);
|
||||
babelHelpers.inherits(Connection, _EventEmitter);
|
||||
|
||||
function Connection(endpoint, joinKey, joinData, roomId) {
|
||||
babelHelpers.classCallCheck(this, Connection);
|
||||
function Connection(endpoint, joinKey, joinData, roomId) {
|
||||
babelHelpers.classCallCheck(this, Connection);
|
||||
|
||||
var _this = babelHelpers.possibleConstructorReturn(this, (Connection.__proto__ || Object.getPrototypeOf(Connection)).call(this));
|
||||
var _this = babelHelpers.possibleConstructorReturn(this, (Connection.__proto__ || Object.getPrototypeOf(Connection)).call(this));
|
||||
|
||||
_this.isConnected = false;
|
||||
_this.roomId = roomId;
|
||||
_this.isConnected = false;
|
||||
_this.roomId = roomId;
|
||||
|
||||
// ...
|
||||
return _this;
|
||||
// ...
|
||||
return _this;
|
||||
}
|
||||
|
||||
babelHelpers.createClass(Connection, [{
|
||||
key: "send",
|
||||
value: function send(message) {
|
||||
this.sock.write(_binarySerializer2.default.serializeMessage(message));
|
||||
}
|
||||
|
||||
babelHelpers.createClass(Connection, [{
|
||||
key: 'send',
|
||||
value: function send(message) {
|
||||
this.sock.write(_binarySerializer2.default.serializeMessage(message));
|
||||
}
|
||||
}, {
|
||||
key: 'disconnect',
|
||||
value: function disconnect() {
|
||||
this.sock.close();
|
||||
}
|
||||
}]);
|
||||
return Connection;
|
||||
}, {
|
||||
key: "disconnect",
|
||||
value: function disconnect() {
|
||||
this.sock.close();
|
||||
}
|
||||
}]);
|
||||
return Connection;
|
||||
}(_events.EventEmitter);
|
||||
|
||||
exports.default = Connection;
|
||||
exports.default = Connection;
|
||||
@@ -1,11 +1,11 @@
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = undefined;
|
||||
|
||||
var _BaseFoo2 = require('./BaseFoo');
|
||||
var _BaseFoo2 = require("./BaseFoo");
|
||||
|
||||
var _BaseFoo3 = babelHelpers.interopRequireDefault(_BaseFoo2);
|
||||
|
||||
@@ -18,13 +18,13 @@ var SubFoo = function (_BaseFoo) {
|
||||
}
|
||||
|
||||
babelHelpers.createClass(SubFoo, null, [{
|
||||
key: 'talk',
|
||||
key: "talk",
|
||||
value: function talk() {
|
||||
babelHelpers.get(SubFoo.__proto__ || Object.getPrototypeOf(SubFoo), 'talk', this).call(this);
|
||||
babelHelpers.get(SubFoo.__proto__ || Object.getPrototypeOf(SubFoo), "talk", this).call(this);
|
||||
console.log('SubFoo.talk');
|
||||
}
|
||||
}]);
|
||||
return SubFoo;
|
||||
}(_BaseFoo3.default);
|
||||
|
||||
exports.default = SubFoo;
|
||||
exports.default = SubFoo;
|
||||
@@ -1,11 +1,11 @@
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = undefined;
|
||||
|
||||
var _react = require('react');
|
||||
var _react = require("react");
|
||||
|
||||
var _react2 = babelHelpers.interopRequireDefault(_react);
|
||||
|
||||
@@ -18,15 +18,15 @@ var RandomComponent = function (_Component) {
|
||||
}
|
||||
|
||||
babelHelpers.createClass(RandomComponent, [{
|
||||
key: 'render',
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return _react2.default.createElement(
|
||||
'div',
|
||||
{ className: 'sui-RandomComponent' },
|
||||
"div",
|
||||
{ className: "sui-RandomComponent" },
|
||||
_react2.default.createElement(
|
||||
'h2',
|
||||
"h2",
|
||||
null,
|
||||
'Hi there!'
|
||||
"Hi there!"
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -34,4 +34,4 @@ var RandomComponent = function (_Component) {
|
||||
return RandomComponent;
|
||||
}(_react.Component);
|
||||
|
||||
exports.default = RandomComponent;
|
||||
exports.default = RandomComponent;
|
||||
@@ -5,10 +5,10 @@ var C = function () {
|
||||
}
|
||||
|
||||
babelHelpers.createClass(C, [{
|
||||
key: 'm',
|
||||
key: "m",
|
||||
value: function m(x: number): string {
|
||||
return 'a';
|
||||
}
|
||||
}]);
|
||||
return C;
|
||||
}();
|
||||
}();
|
||||
Reference in New Issue
Block a user