From cf40346e1af2e7385a8d2f0a6817ccbf5555475b Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 25 Apr 2024 18:26:35 +0200 Subject: [PATCH] eslint: add node globals --- eslint.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index ec4c68f97..b40ce7d9f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,10 +1,14 @@ const js = require('@eslint/js'); +const globals = require('globals'); module.exports = [ js.configs.recommended, { files: ["**/*.js"], languageOptions: { + globals: { + ...globals.node, + }, ecmaVersion: 13, sourceType: "commonjs" },