From d0d0bca390254e8f28a4c4b98f08ccf79aafdf86 Mon Sep 17 00:00:00 2001 From: Owen Pearson Date: Mon, 14 Dec 2020 16:05:08 +0000 Subject: [PATCH] enforce new line at end of file --- .eslintrc.json | 3 ++- browser/lib/transport/index.js | 2 +- browser/lib/transport/jsonptransport.js | 2 +- browser/lib/transport/xhrpollingtransport.js | 2 +- browser/lib/transport/xhrrequest.js | 2 +- browser/lib/transport/xhrstreamingtransport.js | 2 +- browser/lib/util/base64.js | 2 +- browser/lib/util/bufferutils.js | 2 +- browser/lib/util/crypto.js | 2 +- browser/lib/util/defaults.js | 2 +- browser/lib/util/domevent.js | 2 +- browser/lib/util/http.js | 2 +- browser/lib/util/msgpack.js | 2 +- browser/lib/util/nativescript-webstorage.js | 2 +- browser/lib/util/webstorage.js | 2 +- common/lib/client/auth.js | 2 +- common/lib/client/channel.js | 2 +- common/lib/client/channelstatechange.js | 2 +- common/lib/client/connection.js | 2 +- common/lib/client/connectionstatechange.js | 2 +- common/lib/client/paginatedresource.js | 2 +- common/lib/client/presence.js | 2 +- common/lib/client/push.js | 2 +- common/lib/client/realtime.js | 2 +- common/lib/client/realtimechannel.js | 2 +- common/lib/client/realtimepresence.js | 2 +- common/lib/client/resource.js | 2 +- common/lib/client/rest.js | 2 +- common/lib/index.js | 2 +- common/lib/transport/comettransport.js | 2 +- common/lib/transport/connectionerror.js | 2 +- common/lib/transport/connectionmanager.js | 2 +- common/lib/transport/messagequeue.js | 2 +- common/lib/transport/protocol.js | 2 +- common/lib/transport/transport.js | 2 +- common/lib/types/devicedetails.js | 2 +- common/lib/types/errorinfo.js | 2 +- common/lib/types/message.js | 2 +- common/lib/types/presencemessage.js | 2 +- common/lib/types/protocolmessage.js | 2 +- common/lib/types/pushchannelsubscription.js | 2 +- common/lib/types/stats.js | 2 +- common/lib/util/defaults.js | 2 +- common/lib/util/errorreporter.js | 2 +- common/lib/util/eventemitter.js | 2 +- common/lib/util/logger.js | 2 +- common/lib/util/multicaster.js | 2 +- common/lib/util/utils.js | 2 +- nodejs/lib/transport/index.js | 2 +- nodejs/lib/transport/nodecomettransport.js | 2 +- nodejs/lib/util/bufferutils.js | 2 +- nodejs/lib/util/crypto.js | 2 +- nodejs/lib/util/defaults.js | 2 +- nodejs/lib/util/http.js | 2 +- nodejs/platform.js | 2 +- 55 files changed, 56 insertions(+), 55 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index b417089e86..b2460089e3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -6,7 +6,8 @@ }, "rules": { "no-undef": "error", - "comma-dangle": ["error", "never"] + "comma-dangle": ["error", "never"], + "eol-last": "error" }, "parserOptions": { "sourceType": "module" diff --git a/browser/lib/transport/index.js b/browser/lib/transport/index.js index 4dce4ef3af..fec3a0d20c 100644 --- a/browser/lib/transport/index.js +++ b/browser/lib/transport/index.js @@ -6,4 +6,4 @@ export default [ JSONPTransport, XHRPollingTransport, XHRStreamingTransport -]; \ No newline at end of file +]; diff --git a/browser/lib/transport/jsonptransport.js b/browser/lib/transport/jsonptransport.js index 6c6eaeb7fa..da55acaa0d 100644 --- a/browser/lib/transport/jsonptransport.js +++ b/browser/lib/transport/jsonptransport.js @@ -221,4 +221,4 @@ var JSONPTransport = function(connectionManager) { return JSONPTransport; }; -export default JSONPTransport; \ No newline at end of file +export default JSONPTransport; diff --git a/browser/lib/transport/xhrpollingtransport.js b/browser/lib/transport/xhrpollingtransport.js index f23045f49d..95b27138a4 100644 --- a/browser/lib/transport/xhrpollingtransport.js +++ b/browser/lib/transport/xhrpollingtransport.js @@ -45,4 +45,4 @@ var XHRPollingTransport = function(connectionManager) { return XHRPollingTransport; }; -export default XHRPollingTransport; \ No newline at end of file +export default XHRPollingTransport; diff --git a/browser/lib/transport/xhrrequest.js b/browser/lib/transport/xhrrequest.js index af3771b7ef..eb69e6d48a 100644 --- a/browser/lib/transport/xhrrequest.js +++ b/browser/lib/transport/xhrrequest.js @@ -323,4 +323,4 @@ var XHRRequest = (function() { return XHRRequest; })(); -export default XHRRequest; \ No newline at end of file +export default XHRRequest; diff --git a/browser/lib/transport/xhrstreamingtransport.js b/browser/lib/transport/xhrstreamingtransport.js index 7d014cbd70..4bee9cee51 100644 --- a/browser/lib/transport/xhrstreamingtransport.js +++ b/browser/lib/transport/xhrstreamingtransport.js @@ -45,4 +45,4 @@ var XHRStreamingTransport = function(connectionManager) { return XHRStreamingTransport; }; -export default XHRStreamingTransport; \ No newline at end of file +export default XHRStreamingTransport; diff --git a/browser/lib/util/base64.js b/browser/lib/util/base64.js index fc277bbdb2..d828b7ec41 100644 --- a/browser/lib/util/base64.js +++ b/browser/lib/util/base64.js @@ -219,4 +219,4 @@ var Base64 = (function() { return Base64; })(); -export default Base64; \ No newline at end of file +export default Base64; diff --git a/browser/lib/util/bufferutils.js b/browser/lib/util/bufferutils.js index 7119fdae9d..cbfca52840 100644 --- a/browser/lib/util/bufferutils.js +++ b/browser/lib/util/bufferutils.js @@ -213,4 +213,4 @@ var BufferUtils = (function() { return BufferUtils; })(); -export default BufferUtils; \ No newline at end of file +export default BufferUtils; diff --git a/browser/lib/util/crypto.js b/browser/lib/util/crypto.js index 75a33d1648..7a8ed11213 100644 --- a/browser/lib/util/crypto.js +++ b/browser/lib/util/crypto.js @@ -307,4 +307,4 @@ var Crypto = (function() { return Crypto; })(); -export default Crypto; \ No newline at end of file +export default Crypto; diff --git a/browser/lib/util/defaults.js b/browser/lib/util/defaults.js index 2b5a6b1722..ed51046865 100644 --- a/browser/lib/util/defaults.js +++ b/browser/lib/util/defaults.js @@ -22,4 +22,4 @@ if(Platform.noUpgrade) { Defaults.upgradeTransports = []; } -export default Defaults; \ No newline at end of file +export default Defaults; diff --git a/browser/lib/util/domevent.js b/browser/lib/util/domevent.js index a0392f04d4..71d093a5b6 100644 --- a/browser/lib/util/domevent.js +++ b/browser/lib/util/domevent.js @@ -32,4 +32,4 @@ var DomEvent = (function() { return DomEvent; })(); -export default DomEvent; \ No newline at end of file +export default DomEvent; diff --git a/browser/lib/util/http.js b/browser/lib/util/http.js index 6ceb3dd7da..3844b8b71c 100644 --- a/browser/lib/util/http.js +++ b/browser/lib/util/http.js @@ -141,4 +141,4 @@ var Http = (function() { return Http; })(); -export default Http; \ No newline at end of file +export default Http; diff --git a/browser/lib/util/msgpack.js b/browser/lib/util/msgpack.js index c0cc51aa43..486d013602 100644 --- a/browser/lib/util/msgpack.js +++ b/browser/lib/util/msgpack.js @@ -835,4 +835,4 @@ var msgpack = (function() { return exports; })(); -export default msgpack; \ No newline at end of file +export default msgpack; diff --git a/browser/lib/util/nativescript-webstorage.js b/browser/lib/util/nativescript-webstorage.js index 5b5dd18067..b9916739d0 100644 --- a/browser/lib/util/nativescript-webstorage.js +++ b/browser/lib/util/nativescript-webstorage.js @@ -31,4 +31,4 @@ var WebStorage = (function() { return WebStorage; })(); -export default WebStorage; \ No newline at end of file +export default WebStorage; diff --git a/browser/lib/util/webstorage.js b/browser/lib/util/webstorage.js index 41b12b5ebe..659744a540 100644 --- a/browser/lib/util/webstorage.js +++ b/browser/lib/util/webstorage.js @@ -70,4 +70,4 @@ var WebStorage = (function() { return WebStorage; })(); -export default WebStorage; \ No newline at end of file +export default WebStorage; diff --git a/common/lib/client/auth.js b/common/lib/client/auth.js index 7e7c6b747a..9f991fc199 100644 --- a/common/lib/client/auth.js +++ b/common/lib/client/auth.js @@ -816,4 +816,4 @@ var Auth = (function() { return Auth; })(); -export default Auth; \ No newline at end of file +export default Auth; diff --git a/common/lib/client/channel.js b/common/lib/client/channel.js index c3bdef485a..71a94498e3 100644 --- a/common/lib/client/channel.js +++ b/common/lib/client/channel.js @@ -156,4 +156,4 @@ var Channel = (function() { return Channel; })(); -export default Channel; \ No newline at end of file +export default Channel; diff --git a/common/lib/client/channelstatechange.js b/common/lib/client/channelstatechange.js index 38e8e6146d..5a5ddd9a82 100644 --- a/common/lib/client/channelstatechange.js +++ b/common/lib/client/channelstatechange.js @@ -11,4 +11,4 @@ var ChannelStateChange = (function() { return ChannelStateChange; })(); -export default ChannelStateChange; \ No newline at end of file +export default ChannelStateChange; diff --git a/common/lib/client/connection.js b/common/lib/client/connection.js index a80798fb4f..c77745b7ce 100644 --- a/common/lib/client/connection.js +++ b/common/lib/client/connection.js @@ -63,4 +63,4 @@ var Connection = (function() { return Connection; })(); -export default Connection; \ No newline at end of file +export default Connection; diff --git a/common/lib/client/connectionstatechange.js b/common/lib/client/connectionstatechange.js index 830b1b3276..2a6ca92b14 100644 --- a/common/lib/client/connectionstatechange.js +++ b/common/lib/client/connectionstatechange.js @@ -11,4 +11,4 @@ var ConnectionStateChange = (function() { return ConnectionStateChange; })(); -export default ConnectionStateChange; \ No newline at end of file +export default ConnectionStateChange; diff --git a/common/lib/client/paginatedresource.js b/common/lib/client/paginatedresource.js index 5f51814b06..8a628f34be 100644 --- a/common/lib/client/paginatedresource.js +++ b/common/lib/client/paginatedresource.js @@ -150,4 +150,4 @@ var PaginatedResource = (function() { return PaginatedResource; })(); -export default PaginatedResource; \ No newline at end of file +export default PaginatedResource; diff --git a/common/lib/client/presence.js b/common/lib/client/presence.js index 5e35868470..2e453436a7 100644 --- a/common/lib/client/presence.js +++ b/common/lib/client/presence.js @@ -77,4 +77,4 @@ var Presence = (function() { return Presence; })(); -export default Presence; \ No newline at end of file +export default Presence; diff --git a/common/lib/client/push.js b/common/lib/client/push.js index 614ef5f40d..52d4cf4e73 100644 --- a/common/lib/client/push.js +++ b/common/lib/client/push.js @@ -281,4 +281,4 @@ var Push = (function() { return Push; })(); -export default Push; \ No newline at end of file +export default Push; diff --git a/common/lib/client/realtime.js b/common/lib/client/realtime.js index 044dceaac7..5c4c028877 100644 --- a/common/lib/client/realtime.js +++ b/common/lib/client/realtime.js @@ -195,4 +195,4 @@ Realtime.Promise = function(options) { Realtime.Callbacks = Realtime; -export default Realtime; \ No newline at end of file +export default Realtime; diff --git a/common/lib/client/realtimechannel.js b/common/lib/client/realtimechannel.js index 1eed96e03c..d008560fd4 100644 --- a/common/lib/client/realtimechannel.js +++ b/common/lib/client/realtimechannel.js @@ -747,4 +747,4 @@ var RealtimeChannel = (function() { return RealtimeChannel; })(); -export default RealtimeChannel; \ No newline at end of file +export default RealtimeChannel; diff --git a/common/lib/client/realtimepresence.js b/common/lib/client/realtimepresence.js index b3dddb4085..def884a311 100644 --- a/common/lib/client/realtimepresence.js +++ b/common/lib/client/realtimepresence.js @@ -628,4 +628,4 @@ var RealtimePresence = (function() { return RealtimePresence; })(); -export default RealtimePresence; \ No newline at end of file +export default RealtimePresence; diff --git a/common/lib/client/resource.js b/common/lib/client/resource.js index fe73825381..d6dd9290fd 100644 --- a/common/lib/client/resource.js +++ b/common/lib/client/resource.js @@ -161,4 +161,4 @@ var Resource = (function() { return Resource; })(); -export default Resource; \ No newline at end of file +export default Resource; diff --git a/common/lib/client/rest.js b/common/lib/client/rest.js index ec5e9e5989..085ceb66e0 100644 --- a/common/lib/client/rest.js +++ b/common/lib/client/rest.js @@ -207,4 +207,4 @@ Rest.Promise = function(options) { Rest.Callbacks = Rest; -export default Rest; \ No newline at end of file +export default Rest; diff --git a/common/lib/index.js b/common/lib/index.js index 83650a6105..c3c137db2d 100644 --- a/common/lib/index.js +++ b/common/lib/index.js @@ -35,4 +35,4 @@ export default { Rest, Realtime, msgpack -} \ No newline at end of file +} diff --git a/common/lib/transport/comettransport.js b/common/lib/transport/comettransport.js index 09a1769c23..790f5827ed 100644 --- a/common/lib/transport/comettransport.js +++ b/common/lib/transport/comettransport.js @@ -340,4 +340,4 @@ var CometTransport = (function() { return CometTransport; })(); -export default CometTransport; \ No newline at end of file +export default CometTransport; diff --git a/common/lib/transport/connectionerror.js b/common/lib/transport/connectionerror.js index ab8787e72c..2c7eaefe71 100644 --- a/common/lib/transport/connectionerror.js +++ b/common/lib/transport/connectionerror.js @@ -38,4 +38,4 @@ var ConnectionError = { }) }; -export default ConnectionError; \ No newline at end of file +export default ConnectionError; diff --git a/common/lib/transport/connectionmanager.js b/common/lib/transport/connectionmanager.js index 7461150c86..200390af9b 100644 --- a/common/lib/transport/connectionmanager.js +++ b/common/lib/transport/connectionmanager.js @@ -1795,4 +1795,4 @@ var ConnectionManager = (function() { return ConnectionManager; })(); -export default ConnectionManager; \ No newline at end of file +export default ConnectionManager; diff --git a/common/lib/transport/messagequeue.js b/common/lib/transport/messagequeue.js index b789ce8470..9d853041a9 100644 --- a/common/lib/transport/messagequeue.js +++ b/common/lib/transport/messagequeue.js @@ -69,4 +69,4 @@ var MessageQueue = (function() { return MessageQueue; })(); -export default MessageQueue; \ No newline at end of file +export default MessageQueue; diff --git a/common/lib/transport/protocol.js b/common/lib/transport/protocol.js index 6aeef26989..4131621d78 100644 --- a/common/lib/transport/protocol.js +++ b/common/lib/transport/protocol.js @@ -83,4 +83,4 @@ var Protocol = (function() { return Protocol; })(); -export default Protocol; \ No newline at end of file +export default Protocol; diff --git a/common/lib/transport/transport.js b/common/lib/transport/transport.js index 087be18c09..a477d54c9e 100644 --- a/common/lib/transport/transport.js +++ b/common/lib/transport/transport.js @@ -227,4 +227,4 @@ var Transport = (function() { return Transport; })(); -export default Transport; \ No newline at end of file +export default Transport; diff --git a/common/lib/types/devicedetails.js b/common/lib/types/devicedetails.js index 2af7d21d06..3d9c0f30e8 100644 --- a/common/lib/types/devicedetails.js +++ b/common/lib/types/devicedetails.js @@ -91,4 +91,4 @@ var DeviceDetails = (function() { return DeviceDetails; })(); -export default DeviceDetails; \ No newline at end of file +export default DeviceDetails; diff --git a/common/lib/types/errorinfo.js b/common/lib/types/errorinfo.js index 2d3f235250..a13f97fd73 100644 --- a/common/lib/types/errorinfo.js +++ b/common/lib/types/errorinfo.js @@ -36,4 +36,4 @@ var ErrorInfo = (function() { return ErrorInfo; })(); -export default ErrorInfo; \ No newline at end of file +export default ErrorInfo; diff --git a/common/lib/types/message.js b/common/lib/types/message.js index 4f5e29515e..4b25fd632f 100644 --- a/common/lib/types/message.js +++ b/common/lib/types/message.js @@ -318,4 +318,4 @@ var Message = (function() { return Message; })(); -export default Message; \ No newline at end of file +export default Message; diff --git a/common/lib/types/presencemessage.js b/common/lib/types/presencemessage.js index 02f1d54acf..b31a4614a4 100644 --- a/common/lib/types/presencemessage.js +++ b/common/lib/types/presencemessage.js @@ -162,4 +162,4 @@ var PresenceMessage = (function() { return PresenceMessage; })(); -export default PresenceMessage; \ No newline at end of file +export default PresenceMessage; diff --git a/common/lib/types/protocolmessage.js b/common/lib/types/protocolmessage.js index 7467c9778d..2944ff22f4 100644 --- a/common/lib/types/protocolmessage.js +++ b/common/lib/types/protocolmessage.js @@ -201,4 +201,4 @@ var ProtocolMessage = (function() { return ProtocolMessage; })(); -export default ProtocolMessage; \ No newline at end of file +export default ProtocolMessage; diff --git a/common/lib/types/pushchannelsubscription.js b/common/lib/types/pushchannelsubscription.js index 12bf6b812c..161c27b357 100644 --- a/common/lib/types/pushchannelsubscription.js +++ b/common/lib/types/pushchannelsubscription.js @@ -59,4 +59,4 @@ var PushChannelSubscription = (function() { return PushChannelSubscription; })(); -export default PushChannelSubscription; \ No newline at end of file +export default PushChannelSubscription; diff --git a/common/lib/types/stats.js b/common/lib/types/stats.js index 0eb3729080..61adb862fe 100644 --- a/common/lib/types/stats.js +++ b/common/lib/types/stats.js @@ -123,4 +123,4 @@ var Stats = (function() { return Stats; })(); -export default Stats; \ No newline at end of file +export default Stats; diff --git a/common/lib/util/defaults.js b/common/lib/util/defaults.js index 9e0cc3a3ed..584ab3e6da 100644 --- a/common/lib/util/defaults.js +++ b/common/lib/util/defaults.js @@ -219,4 +219,4 @@ Defaults.normaliseOptions = function(options) { return options; }; -export default Defaults; \ No newline at end of file +export default Defaults; diff --git a/common/lib/util/errorreporter.js b/common/lib/util/errorreporter.js index 52d398795f..6d28633476 100644 --- a/common/lib/util/errorreporter.js +++ b/common/lib/util/errorreporter.js @@ -48,4 +48,4 @@ var ErrorReporter = (function() { return ErrorReporter; })(); -export default ErrorReporter; \ No newline at end of file +export default ErrorReporter; diff --git a/common/lib/util/eventemitter.js b/common/lib/util/eventemitter.js index 5bd6e94f82..b503ccfc4c 100644 --- a/common/lib/util/eventemitter.js +++ b/common/lib/util/eventemitter.js @@ -224,4 +224,4 @@ var EventEmitter = (function() { return EventEmitter; })(); -export default EventEmitter; \ No newline at end of file +export default EventEmitter; diff --git a/common/lib/util/logger.js b/common/lib/util/logger.js index df07780d7a..0c48c45f94 100644 --- a/common/lib/util/logger.js +++ b/common/lib/util/logger.js @@ -87,4 +87,4 @@ var Logger = (function() { return Logger; })(); -export default Logger; \ No newline at end of file +export default Logger; diff --git a/common/lib/util/multicaster.js b/common/lib/util/multicaster.js index 535fde6f50..f031db11c3 100644 --- a/common/lib/util/multicaster.js +++ b/common/lib/util/multicaster.js @@ -27,4 +27,4 @@ var Multicaster = (function() { return Multicaster; })(); -export default Multicaster; \ No newline at end of file +export default Multicaster; diff --git a/common/lib/util/utils.js b/common/lib/util/utils.js index 0749f0b071..13dc1e9dc7 100644 --- a/common/lib/util/utils.js +++ b/common/lib/util/utils.js @@ -518,4 +518,4 @@ var Utils = (function() { return Utils; })(); -export default Utils; \ No newline at end of file +export default Utils; diff --git a/nodejs/lib/transport/index.js b/nodejs/lib/transport/index.js index b0865706aa..74e89289ba 100644 --- a/nodejs/lib/transport/index.js +++ b/nodejs/lib/transport/index.js @@ -2,4 +2,4 @@ import NodeCometTransport from './nodecomettransport'; export default [ NodeCometTransport -] \ No newline at end of file +] diff --git a/nodejs/lib/transport/nodecomettransport.js b/nodejs/lib/transport/nodecomettransport.js index 3b505cc072..825b3e1d18 100644 --- a/nodejs/lib/transport/nodecomettransport.js +++ b/nodejs/lib/transport/nodecomettransport.js @@ -309,4 +309,4 @@ var NodeCometTransport = function(connectionManager) { return NodeCometTransport; }; -export default NodeCometTransport; \ No newline at end of file +export default NodeCometTransport; diff --git a/nodejs/lib/util/bufferutils.js b/nodejs/lib/util/bufferutils.js index 4dc4409b5d..87f98a91ec 100644 --- a/nodejs/lib/util/bufferutils.js +++ b/nodejs/lib/util/bufferutils.js @@ -56,4 +56,4 @@ var BufferUtils = (function() { return BufferUtils; })(); -export default BufferUtils; \ No newline at end of file +export default BufferUtils; diff --git a/nodejs/lib/util/crypto.js b/nodejs/lib/util/crypto.js index 2a6cb4c844..105878ac02 100644 --- a/nodejs/lib/util/crypto.js +++ b/nodejs/lib/util/crypto.js @@ -238,4 +238,4 @@ var Crypto = (function() { return Crypto; })(); -export default Crypto; \ No newline at end of file +export default Crypto; diff --git a/nodejs/lib/util/defaults.js b/nodejs/lib/util/defaults.js index e59d9e0591..33735976e4 100644 --- a/nodejs/lib/util/defaults.js +++ b/nodejs/lib/util/defaults.js @@ -12,4 +12,4 @@ var Defaults = { restAgentOptions: {maxSockets: 40, keepAlive: true} }; -export default Defaults; \ No newline at end of file +export default Defaults; diff --git a/nodejs/lib/util/http.js b/nodejs/lib/util/http.js index a33fabca2c..f19c39df3f 100644 --- a/nodejs/lib/util/http.js +++ b/nodejs/lib/util/http.js @@ -205,4 +205,4 @@ var Http = (function() { return Http; })(); -export default Http; \ No newline at end of file +export default Http; diff --git a/nodejs/platform.js b/nodejs/platform.js index d480b3bf29..fa24f030ed 100644 --- a/nodejs/platform.js +++ b/nodejs/platform.js @@ -24,4 +24,4 @@ var Platform = { Promise: global && global.Promise }; -export default Platform; \ No newline at end of file +export default Platform;