Skip to content

Commit

Permalink
.eslintrc.json: Add overrides for JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Oct 22, 2022
1 parent 32c889e commit 5c0096f
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,37 @@
"MISS_MSG": "readonly",
"PROX_MSG": "readonly",
"LDS_EXPAND_LIMBO": "readonly"
}
},
"overrides": [
{
"files": ["*.json"],
"extends": [
"plugin:jsonc/recommended-with-json"
],
"parser": "jsonc-eslint-parser",
"parserOptions": {
"jsonSyntax": "JSON"
}
},
{
"files": ["*.jsonc"],
"extends": [
"plugin:jsonc/recommended-with-jsonc"
],
"parser": "jsonc-eslint-parser",
"parserOptions": {
"jsonSyntax": "JSONC"
}
},
{
"files": ["*.json5"],
"extends": [
"plugin:jsonc/recommended-with-json5"
],
"parser": "jsonc-eslint-parser",
"parserOptions": {
"jsonSyntax": "JSON5"
}
}
]
}

0 comments on commit 5c0096f

Please sign in to comment.