Closed markgoho closed 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.
That's because .eslintrc isn't json, it's JSON5 or similar. There's nothing invalid here.
.eslintrc
Trailing commas are not valid in JSON and will cause many parsing mechanisms to report errors.