Closed Bug 1854255 Opened 2 years ago Closed 2 years ago

Enforce the use of const in JS through eslintrc

Categories

(Thunderbird :: General, task)

Tracking

(thunderbird_esr115 wontfix)

RESOLVED FIXED
119 Branch
Tracking Status
thunderbird_esr115 --- wontfix

People

(Reporter: aleca, Assigned: aleca)

Details

Attachments

(8 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Code consistency and rule following clean up.
Starting from simple updates to tests and specific folders to do it in chunks.

Leaving this open as I will do this update in chunks for each folder that has its own eslintrc

Keywords: leave-open
Status: NEW → ASSIGNED
Target Milestone: --- → 119 Branch
Attachment #9354205 - Attachment description: Bug 1854255 - Enable `prefer-const` as linting rule and update a few tests files. r=#thunderbird-reviewers → Bug 1854255 - Enable `prefer-const` as linting rule for some tests head files. r=#thunderbird-reviewers

Pushed by vineet@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/888d449e17a2
Enable prefer-const as linting rule for some tests head files. r=vineet

Pushed by vineet@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/6a6a411a7a2d
Enforce prefer-const eslint rule in calendar tests. r=leftmostcat,babolivier

Pushed by vineet@thunderbird.net: https://hg.mozilla.org/comm-central/rev/79b4291b20c8 Enforce prefer-const eslint rule in mailnews/base tests. r=vineet

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/f6a766e0feec
Enforce prefer-const eslint rule in the whole mailnews/base. r=leftmostcat

Attachment #9356756 - Attachment description: Bug 1854255 - Enforce prefer-const eslint rule in the chat/ directory. r=freaktechnik → Bug 1854255 - Enforce prefer-const eslint rule in the chat/ and mailnews/export/ directories. r=freaktechnik

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/11c57d7369c1
Enforce prefer-const eslint rule in the chat/ and mailnews/export/ directories. r=freaktechnik

Attachment #9358441 - Attachment description: Bug 1854255 - Enforce prefer-const eslint rule in the whole mailnews/ folder. r=#thunderbird-reviewers → Bug 1854255 - Enforce prefer-const eslint rule in the whole mailnews/ directory. r=freaktechnik

Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/ef6629fe1cb9
Enforce prefer-const eslint rule in the whole mailnews/ directory. r=freaktechnik

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/a5e8e4ec4da8
Enforce prefer-const eslint rule in the whole mail/ directory. r=john.bieling

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Keywords: leave-open
Resolution: --- → FIXED

I was a bit too quick in closing this. We need just another patch to enable this pref globally and fix a few leftovers.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Pushed by ikey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/e56e77518918
Enforce prefer-const eslint rule globally. r=john.bieling,ikey

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Regressions: 1866098
No longer regressions: 1866098
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: