justmoon / node-extend

Simple function to extend objects
MIT License
341 stars 68 forks source link

invalid json syntax in eslintrc file #55

Closed markgoho closed 4 years ago

markgoho commented 4 years ago
{
    "root": true,
    "extends": "@ljharb",
    "rules": {
        "complexity": [2, 20],
        "eqeqeq": [2, "allow-null"],
        "func-name-matching": [2, "always"],
        "max-depth": [1, 4],
        "max-statements": [2, 26],
        "no-magic-numbers": [0],
        "no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
        "sort-keys": [0],
    },
    "overrides": [
        {
            "files": "test/**",
            "rules": {
                "max-lines-per-function": 0,
            },
        },
    ],
}

Trailing commas are not valid in JSON and will cause many parsing mechanisms to report errors.

ljharb commented 4 years ago

That's because .eslintrc isn't json, it's JSON5 or similar. There's nothing invalid here.