Enable additional ESLint rules relevant for selfhosted code
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox105 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(5 files)
| Assignee | ||
Comment 1•4 years ago
|
||
These rules should only be applied to self-hosted code, but not for example to
the .eslintrc.js file itself.
| Assignee | ||
Comment 2•4 years ago
|
||
Enable this rule to avoid regressing bug 1780517 over time.
Depends on D153848
| Assignee | ||
Comment 3•4 years ago
|
||
We have to be extra careful not to use x == null, otherwise we might introduce
spec compliance bugs. For example the two changes in "Tuple.js" are actually bugs
uncovered by this rule.
Depends on D153849
| Assignee | ||
Comment 4•4 years ago
|
||
Self-hosted code is implicitly strict mode. Any extra strict mode directive
is probably an error.
Depends on D153850
| Assignee | ||
Comment 5•4 years ago
|
||
Report an error for disallowed syntax. Either the parser or the byte code
emitter will assert when restricted syntax is encountered, but this rule
allows to reject invalid syntax directly when linting.
Depends on D153851
Updated•4 years ago
|
Comment 7•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8784c2316a4d
https://hg.mozilla.org/mozilla-central/rev/f1222ec4d3e2
https://hg.mozilla.org/mozilla-central/rev/1dfe7568c39e
https://hg.mozilla.org/mozilla-central/rev/e3863be25196
https://hg.mozilla.org/mozilla-central/rev/7d338be64b49
Description
•