From 2ad2cf29aca47d3a9d8f3e534cc61039f21736be Mon Sep 17 00:00:00 2001 From: tdurieux Date: Sun, 3 May 2026 15:37:11 +0200 Subject: [PATCH] fix linter --- eslint.config.mjs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/eslint.config.mjs b/eslint.config.mjs index 5b5f8f6..6f922a3 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -32,10 +32,27 @@ export default tseslint.config( afterEach: "readonly", __dirname: "readonly", console: "readonly", + Buffer: "readonly", }, }, rules: { "@typescript-eslint/no-unused-expressions": "off", }, + }, + { + files: ["scripts/**/*.js"], + languageOptions: { + sourceType: "commonjs", + globals: { + require: "readonly", + module: "readonly", + process: "readonly", + __dirname: "readonly", + __filename: "readonly", + console: "readonly", + Buffer: "readonly", + URL: "readonly", + }, + }, } );