From a2e89039c65135ffc46cee02cd312fe2dac0bf77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jakes=CC=8C?= Date: Wed, 20 Feb 2019 12:24:20 +0100 Subject: [PATCH] Allow ES6 features in the old ES5 & tests linter setting [MAILPOET-1829] --- .eslintrc.es5.json | 3 ++- .eslintrc.tests.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc.es5.json b/.eslintrc.es5.json index 70b87f9e2f..e642534dff 100644 --- a/.eslintrc.es5.json +++ b/.eslintrc.es5.json @@ -5,7 +5,8 @@ "browser": true }, "parserOptions": { - "ecmaVersion": 5 + "ecmaVersion": 6, + "sourceType": "module" }, "rules": { "no-underscore-dangle": 0 // Backbone uses underscores, we cannot remove them diff --git a/.eslintrc.tests.json b/.eslintrc.tests.json index cbfd3d5ad2..ac205e9e54 100644 --- a/.eslintrc.tests.json +++ b/.eslintrc.tests.json @@ -5,7 +5,8 @@ "mocha": true }, "parserOptions": { - "ecmaVersion": 6 + "ecmaVersion": 6, + "sourceType": "module" }, "rules": { "no-only-tests/no-only-tests": 2,