chore: Enforce a few house rules via eslint (#2539)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent 5572ec728e
commit 921d45e577
100 changed files with 479 additions and 295 deletions
@@ -314,12 +314,12 @@ describe('StatusBarController', () => {
sufficient: true,
};
// Start with permanent item — bar stays visible.
// Start with permanent item -- bar stays visible.
controller.setItems([permanentItem, nonPermanentItem]);
vi.advanceTimersByTime(10000);
expect(host.getAttribute('hide')).toBe(null);
// Remove permanent item — popup timer starts.
// Remove permanent item -- popup timer starts.
controller.setItems([nonPermanentItem]);
expect(host.getAttribute('hide')).toBe(null);
@@ -342,7 +342,7 @@ describe('StatusBarController', () => {
string: 'Title',
sufficient: true,
};
// A permanent item that is NOT sufficient — removing it does not
// A permanent item that is NOT sufficient -- removing it does not
// change the sufficient-values set, so the popup timer takes the
// dedicated permanent-removal branch.
const permanentInsufficientItem = {
@@ -356,7 +356,7 @@ describe('StatusBarController', () => {
vi.advanceTimersByTime(10000);
expect(host.getAttribute('hide')).toBe(null);
// Remove the permanent (insufficient) item — sufficient values are
// Remove the permanent (insufficient) item -- sufficient values are
// unchanged, but the popup timer must still start.
controller.setItems([sufficientItem]);
expect(host.getAttribute('hide')).toBe(null);