Closed Bug 1318493 Opened 3 years ago Closed 3 years ago

Tell the eslint parser to use ecmaVersion 8

Categories

(Firefox Build System :: Lint and Formatting, defect)

3 Branch
defect
Not set

Tracking

(firefox53 fixed)

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: markh, Unassigned)

References

Details

Attachments

(1 file)

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.
Blocks: 1316500
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+
Pushed by mhammond@skippinet.com.au:
https://hg.mozilla.org/integration/autoland/rev/590858b739ab
Tell the eslint parser to use ecmaVersion 8. r=mossop
https://hg.mozilla.org/mozilla-central/rev/590858b739ab
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Product: Testing → Firefox Build System
Version: Version 3 → 3 Branch
You need to log in before you can comment on or make changes to this bug.