Force eslint on enterprisepolicies Policies.sys.mjs' file
Categories
(Enterprise Products :: Thunderbird, task)
Tracking
(firefox156 fixed)
| Tracking | Status | |
|---|---|---|
| firefox156 | --- | fixed |
People
(Reporter: gerard-majax, Assigned: gerard-majax)
References
Details
Attachments
(1 file)
In order to be able to properly keep in sync thunderbird and firefox' enterprise policies where it is relevant, as attempted in bug 2062510, this relies on enforcing the eslint rule prefer-const on this specific file: both repositories have different default values here, and thunderbird is stricter.
This results in linting issues on Thunderbird side, and extra useless changes to keep policies in sync, changes only limited to replacing const by let.
Proposal is locally forcing prefer-const on the file on gecko, so that the test added in bug 2062510 is more relevant.
| Assignee | ||
Comment 1•23 days ago
|
||
Backed out for causing lint failrues
Backout link
Push with failures
Failure log(s)
| Assignee | ||
Updated•22 days ago
|
| Assignee | ||
Comment 5•22 days ago
|
||
Of course something on autoland had already regressed this
Comment 7•22 days ago
|
||
| bugherder | ||
Comment 8•19 days ago
|
||
(In reply to :gerard-majax from comment #0)
In order to be able to properly keep in sync thunderbird and firefox' enterprise policies where it is relevant, as attempted in bug 2062510, this relies on enforcing the
eslintruleprefer-conston this specific file: both repositories have different default values here, and thunderbird is stricter.
Please note that Firefox has not enabled prefer-const globally for various reasons - see the discussion in bug 1803560. We also try and keep a consistent configuration across the code base, so that it is easier for developers. In this case, one file probably doesn't matter too much, however if this is desired for more files, please discuss with the JS usage & style team first.
| Assignee | ||
Comment 9•19 days ago
|
||
(In reply to Mark Banner (:standard8) from comment #8)
(In reply to :gerard-majax from comment #0)
In order to be able to properly keep in sync thunderbird and firefox' enterprise policies where it is relevant, as attempted in bug 2062510, this relies on enforcing the
eslintruleprefer-conston this specific file: both repositories have different default values here, and thunderbird is stricter.Please note that Firefox has not enabled
prefer-constglobally for various reasons - see the discussion in bug 1803560. We also try and keep a consistent configuration across the code base, so that it is easier for developers. In this case, one file probably doesn't matter too much, however if this is desired for more files, please discuss with the JS usage & style team first.
The goal in the next couple of weeks is to be able to completely deduplicate the policies code between firefox and thunderbird, so that enforced prefer-const will not be a problem anymore because the code will be shared at toolkit/ level. Unfortunately, for the time being we have to live with the duplicated code, and making sure it's strictly identical is really important
Updated•19 days ago
|
Description
•