From 723a5a5a3503d84ade939434298d69febb07ded0 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 15 Feb 2021 12:38:45 -0500 Subject: Update eslint rules (#1401) --- .eslintrc.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9571d853..0fe6743c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -3,7 +3,11 @@ "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 8, - "sourceType": "script" + "sourceType": "script", + "ecmaFeatures": { + "globalReturn": false, + "impliedStrict": true + } }, "env": { "browser": true, @@ -203,6 +207,18 @@ "Intl": "readonly", "crypto": "readonly" } + }, + { + "files": [ + "ext/js/**/*.js" + ], + "excludedFiles": [ + "ext/js/core.js", + "ext/js/**/*main.js" + ], + "rules": { + "no-implicit-globals": "error" + } } ] } -- cgit v1.2.3