quick-lint-js

Find bugs in JavaScript programs.

E0168: "globals" must be an object

In a quick-lint-js configuration file, "globals" must be an object or omitted. It is an error if "globals" is an array, a boolean, a number, a string, or null:

{
    "globals": [
        "ga",
        "google",
        "$"
    ]
}

To fix this error, make "globals" an object:

{
    "globals": {
        "ga": true,
        "google": true,
        "$": true
    }
}

Documentation for other errors