From 958cf897c114d7dcc8f116e1ec73b045214875f8 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Wed, 22 Jul 2020 17:04:11 -0400 Subject: [PATCH] Update ESlint config --- .eslintrc.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index fcd4dc4e..4185f853 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,11 +5,13 @@ "wikimedia/jquery", "wikimedia/mediawiki" ], - "env": { - "commonjs": true - }, "globals": { - "OO": "readonly", - "require": "readonly" + "require": "readonly", + "module": "readonly" + }, + "rules": { + "one-var": "off", + "//": ["off", "ResourceLoader's `packageFiles` do not require wrapping but the `module` option is only available in ES6+."], + "no-implicit-globals": "off" } -} \ No newline at end of file +}