Bug 1318493 - Tell the eslint parser to use ecmaVersion 8. r?Mossop draft
authorMark Hammond <mhammond@skippinet.com.au>
Fri, 18 Nov 2016 10:02:13 +1100
changeset 442263 111e5684fc011b78821f0d51d451a21325e804b4
parent 442068 0534254e9a40b4bade2577c631fe4cfa0b5db41d
child 442264 18472838065d0a28da968c978f174c0fc98352fd
push id36643
push userbmo:markh@mozilla.com
push dateTue, 22 Nov 2016 04:48:07 +0000
reviewersMossop
bugs1318493
milestone53.0a1
Bug 1318493 - Tell the eslint parser to use ecmaVersion 8. r?Mossop MozReview-Commit-ID: DPO9IrSxc2Q
.eslintrc.js
toolkit/components/extensions/.eslintrc.js
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -6,9 +6,12 @@ module.exports = {
     "mozilla"
   ],
   "rules": {
     "mozilla/import-globals": "warn",
   },
   "env": {
     "es6": true
   },
+  "parserOptions": {
+    "ecmaVersion": 8,
+  },
 };
--- a/toolkit/components/extensions/.eslintrc.js
+++ b/toolkit/components/extensions/.eslintrc.js
@@ -1,17 +1,13 @@
 "use strict";
 
 module.exports = { // eslint-disable-line no-undef
   "extends": "../../.eslintrc.js",
 
-  "parserOptions": {
-    "ecmaVersion": 8,
-  },
-
   "globals": {
     "Cc": true,
     "Ci": true,
     "Components": true,
     "Cr": true,
     "Cu": true,
     "dump": true,
     "TextDecoder": false,