Skip to content

Commit

Permalink
Change configs provided by plugin to parse the .jsonc extension by …
Browse files Browse the repository at this point in the history
…default. (#136)
  • Loading branch information
ota-meshi authored Nov 5, 2021
1 parent 497c992 commit 59d482e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module.exports = {
// Add an `overrides` section to add a parser configuration for json.
overrides: [
{
files: ["*.json", "*.json5"],
files: ["*.json", "*.json5", "*.jsonc"],
parser: "jsonc-eslint-parser",
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = {
// Add an `overrides` section to add a parser configuration for json.
overrides: [
{
files: ["*.json", "*.json5"],
files: ["*.json", "*.json5", "*.jsonc"],
parser: "jsonc-eslint-parser",
},
],
Expand Down
2 changes: 1 addition & 1 deletion lib/configs/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export = {
plugins: ["jsonc"],
overrides: [
{
files: ["*.json", "*.json5"],
files: ["*.json", "*.json5", "*.jsonc"],
parser: require.resolve("jsonc-eslint-parser"),
rules: {
// ESLint core rules known to cause problems with JSON.
Expand Down

0 comments on commit 59d482e

Please sign in to comment.