eslint: Configure sourceType for *.cjs files.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-11-12 22:08:59 -08:00 committed by Tim Abbott
parent dc514f69ee
commit 30eabb9d6c
1 changed files with 6 additions and 0 deletions

View File

@ -136,6 +136,12 @@ module.exports = {
yoda: "error",
},
overrides: [
{
files: ["*.cjs"],
parserOptions: {
sourceType: "script",
},
},
{
files: ["web/tests/**"],
rules: {