Skip to content

Commit 6a49cdb

Browse files
authored
Merge pull request #2317 from alanorth/eslint-json5
Update ESLint configuration for json5 files
2 parents f95596b + 9896eab commit 6a49cdb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.eslintrc.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"eslint-plugin-rxjs",
1313
"eslint-plugin-simple-import-sort",
1414
"eslint-plugin-import-newlines",
15-
"eslint-plugin-jsonc",
1615
"dspace-angular-ts",
1716
"dspace-angular-html"
1817
],
@@ -303,10 +302,13 @@
303302
"*.json5"
304303
],
305304
"extends": [
306-
"plugin:jsonc/recommended-with-jsonc"
305+
"plugin:jsonc/recommended-with-json5"
307306
],
308307
"rules": {
309-
"no-irregular-whitespace": "error",
308+
// The ESLint core no-irregular-whitespace rule doesn't work well in JSON
309+
// See: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-irregular-whitespace.html
310+
"no-irregular-whitespace": "off",
311+
"jsonc/no-irregular-whitespace": "error",
310312
"no-trailing-spaces": "error",
311313
"jsonc/comma-dangle": [
312314
"error",

0 commit comments

Comments
 (0)