Skip to content

Commit

Permalink
Change linting rule
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mears-2 committed Jul 30, 2024
1 parent da0cc1b commit 8f1a0dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions components/WebsocketConnection.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ if (socket.connected) {
function checkConnectionStatus() {
if (socket.connected) {
onConnect();
}
else {
} else {

Check warning on line 26 in components/WebsocketConnection.client.vue

View check run for this annotation

Codecov / codecov/patch

components/WebsocketConnection.client.vue#L26

Added line #L26 was not covered by tests
onDisconnect();
}
}
Expand Down
6 changes: 6 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export default withNuxt(
"style",
],
}],
"style/brace-style": ["error", "1tbs", {
allowSingleLine: true,
}],
},
},
).override(
Expand All @@ -28,6 +31,9 @@ export default withNuxt(
avoidEscape: true,
}],
"style/semi": ["error", "always"],
"style/brace-style": ["error", "1tbs", {
allowSingleLine: true,
}],
},
},
),
Expand Down

0 comments on commit 8f1a0dd

Please sign in to comment.