From 793829cccdb3cc53a0178e71b72ef14911d3311a Mon Sep 17 00:00:00 2001 From: zinduolis Date: Tue, 19 May 2026 19:56:33 +1000 Subject: [PATCH] Fix: lint eslint.config.js with proper ecmaVersion --- eslint.config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index 762db77e2..44cee5d4f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -15,6 +15,8 @@ module.exports = [ }, js.configs.recommended, { + files: ["**/*.js"], + ignores: ["eslint.config.js"], languageOptions: { ecmaVersion: 5, sourceType: "script", @@ -45,4 +47,15 @@ module.exports = [ }, }, }, + { + files: ["eslint.config.js"], + languageOptions: { + ecmaVersion: "latest", + sourceType: "commonjs", + globals: { + module: "writable", + require: "readonly", + }, + }, + }, ];