From a351a1dce6bde6f22137eb4b0290d98b1ecd3d5c Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 21 Jun 2021 14:47:26 -0400 Subject: [PATCH] ci: enable ES6 support for ESLint --- .eslintrc.json | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index ce028b8..6808365 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,7 @@ { "root": true, "extends": [ - "wikimedia/client", + "wikimedia/client-es6", "wikimedia/jquery", "wikimedia/mediawiki" ], @@ -16,5 +16,8 @@ "ResourceLoader's `packageFiles` do not require wrapping but the `module` option is only available in ES6+." ], "no-implicit-globals": "off" + }, + "parserOptions": { + "ecmaVersion": 11 } } diff --git a/package.json b/package.json index 898743d..d1661a2 100644 --- a/package.json +++ b/package.json @@ -14,4 +14,4 @@ "stylelint-config-idiomatic-order": "8.1.0", "stylelint-config-wikimedia": "0.11.1" } -} \ No newline at end of file +}