From 8f1a0dd273025e3e0ced56ddee53fcfb44bcf74a Mon Sep 17 00:00:00 2001 From: David Mears Date: Tue, 30 Jul 2024 18:04:02 +0100 Subject: [PATCH] Change linting rule --- components/WebsocketConnection.client.vue | 3 +-- eslint.config.mjs | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/components/WebsocketConnection.client.vue b/components/WebsocketConnection.client.vue index 9820d95b..7276cadb 100644 --- a/components/WebsocketConnection.client.vue +++ b/components/WebsocketConnection.client.vue @@ -23,8 +23,7 @@ if (socket.connected) { function checkConnectionStatus() { if (socket.connected) { onConnect(); - } - else { + } else { onDisconnect(); } } diff --git a/eslint.config.mjs b/eslint.config.mjs index cbdac841..b6e3c2a4 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -17,6 +17,9 @@ export default withNuxt( "style", ], }], + "style/brace-style": ["error", "1tbs", { + allowSingleLine: true, + }], }, }, ).override( @@ -28,6 +31,9 @@ export default withNuxt( avoidEscape: true, }], "style/semi": ["error", "always"], + "style/brace-style": ["error", "1tbs", { + allowSingleLine: true, + }], }, }, ),