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",
|
yoda: "error",
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ["*.cjs"],
|
||||||
|
parserOptions: {
|
||||||
|
sourceType: "script",
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
files: ["web/tests/**"],
|
files: ["web/tests/**"],
|
||||||
rules: {
|
rules: {
|
||||||
|
|
Loading…
Reference in New Issue