From 6291ed88c0e12dbacf5c1ae5c435b1f4e8849718 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 13 Feb 2025 19:01:44 +0900 Subject: [PATCH] eslint config update --- eslint.config.mjs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 131b33ef..ff91f7eb 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -3,12 +3,7 @@ import pluginJs from '@eslint/js'; /* module.exports = { - 'env': { - 'browser': true, - 'es6': true, - 'commonjs': true, - 'jquery': true - }, + // in globals block 'extends': 'eslint:recommended', 'parserOptions': { 'ecmaVersion': 6 @@ -19,7 +14,12 @@ module.exports = { /** @type {import('eslint').Linter.Config[]} */ export default [ - {languageOptions: { globals: globals.browser }}, + {languageOptions: { + globals: { + ...globals.browser, + ...globals.jquery + } + }}, pluginJs.configs.recommended, { 'rules': {