Closed Bug 1832130 Opened 1 year ago Closed 11 months ago

Port bug 1508369: Add stylelint to Thunderbird CI and mach commlint

Categories

(Thunderbird :: Build Config, task)

Tracking

(thunderbird_esr102 unaffected, thunderbird114 unaffected)

RESOLVED FIXED
115 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird114 --- unaffected

People

(Reporter: rjl, Assigned: rjl)

References

Details

Attachments

(4 files)

No description provided.
Assignee: nobody → daniel
Assignee: daniel → rob
Status: NEW → ASSIGNED
Depends on: 1834499, 1834590

There are some files that won't auto-fix and I'm not 100% what to do with. Alex, can you have someone look please? (We do want to land this ASAP to avoid uplift problems with 115esr later on.)

/home/rob/moz/m-c/comm/calendar/base/themes/common/today-pane.css
122:52 error Unexpected missing generic font family font-family-no-missing-generic-family-keyword (stylelint)

/home/rob/moz/m-c/comm/mail/themes/osx/mail/mailWindow1.css
51:16 error Unexpected missing generic font family font-family-no-missing-generic-family-keyword (stylelint)

/home/rob/moz/m-c/comm/mail/themes/shared/mail/chat.css
917:38 error Unexpected missing generic font family font-family-no-missing-generic-family-keyword (stylelint)

/home/rob/moz/m-c/comm/mail/themes/shared/mail/panelUI.css
15:35 error Unexpected missing var function for "--menu-panel-width" custom-property-no-missing-var-function (stylelint)

/home/rob/moz/m-c/comm/mail/themes/shared/mail/tree-listbox.css
88:3 error Unexpected duplicate "--listbox-selected-color" declaration-block-no-duplicate-custom-properties (stylelint)

Flags: needinfo?(alessandro)

(In reply to Rob Lemley [:rjl] from comment #3)

/home/rob/moz/m-c/comm/calendar/base/themes/common/today-pane.css
122:52 error Unexpected missing generic font family font-family-no-missing-generic-family-keyword (stylelint)

/home/rob/moz/m-c/comm/mail/themes/osx/mail/mailWindow1.css
51:16 error Unexpected missing generic font family font-family-no-missing-generic-family-keyword (stylelint)

/home/rob/moz/m-c/comm/mail/themes/shared/mail/chat.css
917:38 error Unexpected missing generic font family font-family-no-missing-generic-family-keyword (stylelint)

For these 3 you can add a , sans-serif; fallback right at the end of those fonts lists.

/home/rob/moz/m-c/comm/mail/themes/shared/mail/panelUI.css
15:35 error Unexpected missing var function for "--menu-panel-width" custom-property-no-missing-var-function (stylelint)

Can we put a linter comment to ignore this? We need it as we're overriding an m-c variable only for that widget.

/home/rob/moz/m-c/comm/mail/themes/shared/mail/tree-listbox.css
88:3 error Unexpected duplicate "--listbox-selected-color" declaration-block-no-duplicate-custom-properties (stylelint)

Ah, good catch on this duplicate.
Richard, we got double declaration here: https://searchfox.org/comm-central/rev/5391ea879779884999142a67920e99c83ea356bd/mail/themes/shared/mail/tree-listbox.css#82-89

--listbox-selected-color: var(--listbox-color);
--listbox-selected-color: var(--sidebar-highlight-text-color, var(--selected-item-text-color));

I guess we should delete the first one, but just checking to make sure.

Flags: needinfo?(alessandro) → needinfo?(richard.marti)

(In reply to Alessandro Castellani [:aleca] from comment #4)

(In reply to Rob Lemley [:rjl] from comment #3)

/home/rob/moz/m-c/comm/mail/themes/shared/mail/tree-listbox.css
88:3 error Unexpected duplicate "--listbox-selected-color" declaration-block-no-duplicate-custom-properties (stylelint)

Ah, good catch on this duplicate.
Richard, we got double declaration here: https://searchfox.org/comm-central/rev/5391ea879779884999142a67920e99c83ea356bd/mail/themes/shared/mail/tree-listbox.css#82-89

--listbox-selected-color: var(--listbox-color);
--listbox-selected-color: var(--sidebar-highlight-text-color, var(--selected-item-text-color));

I guess we should delete the first one, but just checking to make sure.

Yes, the first one can be deleted.

Flags: needinfo?(richard.marti)
Attachment #9335483 - Attachment description: WIP: Bug 1832130 - Port bug 1508369: Add stylelint to mach commlint. r=#thunderbird-front-end-reviewers → Bug 1832130 - Port bug 1508369: Add stylelint to mach commlint. r=#thunderbird-front-end-reviewers
Attachment #9335484 - Attachment description: WIP: Bug 1832130 - Port bug 1508369: Automatic stylelint fixes. r=#thunderbird-front-end-reviewers → Bug 1832130 - Port bug 1508369: Automatic stylelint fixes. r=#thunderbird-front-end-reviewers
Target Milestone: --- → 115 Branch

Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/129ddcf819cd
Port bug 1508369: Add stylelint to mach commlint. r=aleca
https://hg.mozilla.org/comm-central/rev/ce549fa3b0cf
Port bug 1508369: Automatic stylelint fixes. r=aleca
https://hg.mozilla.org/comm-central/rev/5d1a27e645b1
Port bug 1508369: Manual stylelint fixes. r=aleca

Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/581cce6d1113
Port bug 1508369: Add stylelint (css) linting to Thunderbird CI. r=dandarnell

Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: