From 30eabb9d6cfd932f49185ad5116fe56cb2a486ee Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 12 Nov 2024 22:08:59 -0800 Subject: [PATCH] eslint: Configure sourceType for *.cjs files. Signed-off-by: Anders Kaseorg --- .eslintrc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index d9f3c8d676..84d5b432af 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -136,6 +136,12 @@ module.exports = { yoda: "error", }, overrides: [ + { + files: ["*.cjs"], + parserOptions: { + sourceType: "script", + }, + }, { files: ["web/tests/**"], rules: {