Closed Bug 1726734 Opened 3 years ago Closed 3 years ago

Enable ESLint no-octal rule on dom/

Categories

(Core :: DOM: Core & HTML, task, P5)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: standard8, Assigned: msub2, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=js])

Attachments

(1 file)

Octal sequences of the style 0644 are deprecated in Javascript, and in strict mode are parsing errors.

We still have a few cases in dom/ that the no-octal rule picks up.

Therefore we want to replace those. For example, 0644 can be replaced by 0o644.

To enable the no-octal rules in these directories, remove the three lines in the top-level .eslintrc.js: https://searchfox.org/mozilla-central/rev/12770bd668c0a6bdaa8eb96ad9507c6febe8d23d/.eslintrc.js#288,373,448

ESLint can be run with: ./mach eslint dom.

For instructions on how to get your local build of Firefox up and running and submit your patch, see https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

Note this bug will be auto-assigned when the first patch is attached.

Severity: -- → N/A
Priority: -- → P5

I just landed the docshell part in bug 1727591

No longer blocks: 1596159
Summary: Enable ESLint no-octal rule on dom/ and docshell/ → Enable ESLint no-octal rule on dom/

Hey, can I work on the bug?

Sure, no-one else has started yet, as I said in comment 0, this will be auto-assigned when the first patch is attached.

Assignee: nobody → msub2official
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1ed7cd12b366
Replace deprecated octal sequences to satisfy ESLint no-octal-rule. r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: