mirror of https://github.com/zulip/zulip.git
eslint: Configure sourceType for *.cjs files.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
dc514f69ee
commit
30eabb9d6c
|
@ -136,6 +136,12 @@ module.exports = {
|
|||
yoda: "error",
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ["*.cjs"],
|
||||
parserOptions: {
|
||||
sourceType: "script",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["web/tests/**"],
|
||||
rules: {
|
||||
|
|
Loading…
Reference in New Issue