From e727c4c62e0773f0ec43a50049eecf94f28b13a6 Mon Sep 17 00:00:00 2001 From: Adam Lui Date: Tue, 26 Nov 2024 21:47:01 -0800 Subject: [PATCH] Simplified module config block, disabled globals for dom.js --- eslint.config.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 4280f7da3..466f56318 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -36,7 +36,8 @@ export default [ } }, { files: ['**/chatgpt.js'], languageOptions: { globals: { chatgpt: 'off' }}}, - { files: ['**/*.mjs', '**/components/*.js', '**/lib*/*.js'], languageOptions: { sourceType: 'module' }}, + { files: ['**/dom.js'], languageOptions: { globals: { chatgpt: 'dom' }}}, + { files: ['**/*.mjs'], languageOptions: { sourceType: 'module' }}, { files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended }, { files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown },