allowElseIf for else return, since its auto fix removes "else" but without newline
This commit is contained in:
		
							parent
							
								
									2677f5dd87
								
							
						
					
					
						commit
						c990edc87d
					
				
					 2 changed files with 1 additions and 4 deletions
				
			
		|  | @ -62,9 +62,6 @@ module.exports = { | ||||||
|             exceptAfterSingleLine: true, |             exceptAfterSingleLine: true, | ||||||
|         }], |         }], | ||||||
|         "no-unneeded-ternary": "error", |         "no-unneeded-ternary": "error", | ||||||
|         "no-else-return": ["error", { |  | ||||||
|             "allowElseIf": false, |  | ||||||
|         }], |  | ||||||
|         "array-bracket-newline": ["error", "consistent"], |         "array-bracket-newline": ["error", "consistent"], | ||||||
|         "eol-last": ["error", "always"], |         "eol-last": ["error", "always"], | ||||||
|         //'prefer-template': 'error',
 |         //'prefer-template': 'error',
 | ||||||
|  |  | ||||||
|  | @ -124,7 +124,7 @@ class Notification { | ||||||
|                     await axios.post(notification.discordWebhookUrl, discorddowndata) |                     await axios.post(notification.discordWebhookUrl, discorddowndata) | ||||||
|                     return okMsg; |                     return okMsg; | ||||||
| 
 | 
 | ||||||
|                 } if (heartbeatJSON["status"] == 1) { |                 } else if (heartbeatJSON["status"] == 1) { | ||||||
|                     let discordupdata = { |                     let discordupdata = { | ||||||
|                         username: notification.discordUsername || "Uptime Kuma", |                         username: notification.discordUsername || "Uptime Kuma", | ||||||
|                         embeds: [{ |                         embeds: [{ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue