Closed Bug 1725934 Opened 3 years ago Closed 3 years ago

Unnecessary Babel plugin for linting

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox93 fixed)

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: nicolo.ribaudo, Assigned: standard8)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36

Steps to reproduce:

The .babel-eslint.rc.js [1] config file in mozilla-central enables the @babel/plugin-syntax-class-properties plugin, but it's not necessary since class fields are enabled by default starting from Babel 7.14.0 [2] and mozilla-central is using @babel/core@7.14.3 [3].

[1] https://searchfox.org/mozilla-central/rev/d3683dbb252506400c71256ef3994cdbdfb71ada/.babel-eslint.rc.js#7
[2] https://babeljs.io/blog/2021/04/29/7.14.0#new-class-features-enabled-by-default
[3] https://searchfox.org/mozilla-central/rev/d3683dbb252506400c71256ef3994cdbdfb71ada/package.json#7

I was going to submit a patch, but then noticed this comment by Mark Banner (:standard8) so I don't think I can.

Type: defect → task

(In reply to Nicolò Ribaudo from comment #1)

I was going to submit a patch, but then noticed this comment by Mark Banner (:standard8) so I don't think I can.

Thank you for filing this. It is indeed unfortunate that we only have a few people that can update this at the moment - Although some of the work could be done by others (checking for new errors, etc), the new packages have to be uploaded to the build infrastructure which also regenerates package-lock.json. Overall, that generally means for small changes like this it isn't worth the extra time for a contributor to do.

Assignee: nobody → standard8
Severity: -- → N/A
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P3

plugin-syntax-class-properties was supported by default in Babel 7.14.0.
This also adds top level await support in modules with the upgrade to Babel 7.15.0.

Blocks: 1725952
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/306b43a4a5bd Remove unnecessary babel plugin, and update node modules to the latest versions. r=Mardak
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: