Tell the eslint parser to use ecmaVersion 8

RESOLVED FIXED in Firefox 53

Status

RESOLVED FIXED
2 years ago
9 months ago

People

(Reporter: markh, Unassigned)

Tracking

Version 3
mozilla53

Firefox Tracking Flags

(firefox53 fixed)

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
eslint currently fails on the shiny new "async" and "await" commands. The solution appears to be to add:

  "parserOptions": {
    "ecmaVersion": 8,
  },

to the eslintrc.js file. Mossop suggested I just stick it in the root.
(Reporter)

Updated

2 years ago
Blocks: 1316500
Comment hidden (mozreview-request)

Comment 2

2 years ago
mozreview-review
Comment on attachment 8811960 [details]
Bug 1318493 - Tell the eslint parser to use ecmaVersion 8.

https://reviewboard.mozilla.org/r/93854/#review94362

::: .eslintrc.js:14
(Diff revision 1)
>      "mozilla/import-globals": "warn",
>    },
>    "env": {
>      "es6": true
>    },
> +"parserOptions": {

Fix the indentation here please.
Attachment #8811960 - Flags: review?(dtownsend) → review+
Comment hidden (mozreview-request)

Comment 4

2 years ago
Pushed by mhammond@skippinet.com.au:
https://hg.mozilla.org/integration/autoland/rev/590858b739ab
Tell the eslint parser to use ecmaVersion 8. r=mossop

Comment 5

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/590858b739ab
Status: NEW → RESOLVED
Last Resolved: 2 years ago
status-firefox53: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53

Updated

9 months ago
Product: Testing → Firefox Build System
You need to log in before you can comment on or make changes to this bug.