mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	eslint: Add key-spacing linter rule.
Apparently, we didn't have one of these, and thus had a moderate number of generally very old violations in the codebase. Fix this and clear the ones that exist..
This commit is contained in:
		@@ -1,12 +1,12 @@
 | 
			
		||||
var Socket = (function () {
 | 
			
		||||
 | 
			
		||||
var CLOSE_REASONS = {
 | 
			
		||||
    none_given:   {code: 4000, msg: "No reason provided"},
 | 
			
		||||
    none_given: {code: 4000, msg: "No reason provided"},
 | 
			
		||||
    no_heartbeat: {code: 4001, msg: "Missed too many heartbeats"},
 | 
			
		||||
    auth_fail:    {code: 4002, msg: "Authentication failed"},
 | 
			
		||||
    ack_timeout:  {code: 4003, msg: "ACK timeout"},
 | 
			
		||||
    cant_send:    {code: 4004, msg: "User attempted to send while Socket was not ready"},
 | 
			
		||||
    unsuspend:    {code: 4005, msg: "Got unsuspend event"},
 | 
			
		||||
    auth_fail: {code: 4002, msg: "Authentication failed"},
 | 
			
		||||
    ack_timeout: {code: 4003, msg: "ACK timeout"},
 | 
			
		||||
    cant_send: {code: 4004, msg: "User attempted to send while Socket was not ready"},
 | 
			
		||||
    unsuspend: {code: 4005, msg: "Got unsuspend event"},
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
function Socket(url) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user