Skip to content

Commit 50c1314

Browse files
matthiaskdr-rompecabezas
authored andcommitted
Enable the useSingleVarDeclarator style rule
1 parent ec4837c commit 50c1314

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ repos:
2727
rev: v1.9.4
2828
hooks:
2929
- id: biome-check
30+
verbose: true
3031
- repo: https://github.com/astral-sh/ruff-pre-commit
3132
rev: 'v0.9.7'
3233
hooks:

biome.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"noArguments": "off",
2020
"noParameterAssign": "off",
2121
"noUselessElse": "off",
22-
"useSingleVarDeclarator": "off",
2322
"useTemplate": "off"
2423
},
2524
"suspicious": {

debug_toolbar/static/debug_toolbar/js/timer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { $$ } from "./utils.js";
22

33
function insertBrowserTiming() {
4-
const timingOffset = performance.timing.navigationStart,
5-
timingEnd = performance.timing.loadEventEnd,
6-
totalTime = timingEnd - timingOffset;
4+
const timingOffset = performance.timing.navigationStart;
5+
const timingEnd = performance.timing.loadEventEnd;
6+
const totalTime = timingEnd - timingOffset;
77
function getLeft(stat) {
88
if (totalTime !== 0) {
99
return (

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ const djdt = {
3737
this.parentElement.classList.add("djdt-active");
3838

3939
const inner = current.querySelector(
40-
".djDebugPanelContent .djdt-scroll"
41-
),
42-
storeId = djDebug.dataset.storeId;
40+
".djDebugPanelContent .djdt-scroll"
41+
);
42+
const storeId = djDebug.dataset.storeId;
4343
if (storeId && inner.children.length === 0) {
4444
const url = new URL(
4545
djDebug.dataset.renderPanelUrl,
@@ -157,7 +157,8 @@ const djdt = {
157157
djdt.showToolbar();
158158
}
159159
});
160-
let startPageY, baseY;
160+
let startPageY;
161+
let baseY;
161162
const handle = document.getElementById("djDebugToolbarHandle");
162163
function onHandleMove(event) {
163164
// Chrome can send spurious mousemove events, so don't do anything unless the
@@ -341,8 +342,8 @@ const djdt = {
341342
return null;
342343
}
343344

344-
const cookieArray = document.cookie.split("; "),
345-
cookies = {};
345+
const cookieArray = document.cookie.split("; ");
346+
const cookies = {};
346347

347348
cookieArray.forEach(function (e) {
348349
const parts = e.split("=");
@@ -355,8 +356,8 @@ const djdt = {
355356
options = options || {};
356357

357358
if (typeof options.expires === "number") {
358-
const days = options.expires,
359-
t = (options.expires = new Date());
359+
const days = options.expires;
360+
const t = (options.expires = new Date());
360361
t.setDate(t.getDate() + days);
361362
}
362363

0 commit comments

Comments
 (0)