From 543b6805bc6e84a8d3ab1099bd337a196dc5786a Mon Sep 17 00:00:00 2001 From: Bernhard P <6582465+BePo65@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:17:03 +0200 Subject: [PATCH] Fix README.md: remove one more set of curly brackets (#91) * Fix one more curly bracket * Fix unintended changes of line endings --- README.md | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 79e6b1b..b831b66 100644 --- a/README.md +++ b/README.md @@ -72,22 +72,20 @@ To do so, add option `'allowComments'` or `{allowComments: true}` For instance: ```js -{ - import json from "eslint-plugin-json"; - - export default [ - { - files: ["**/*.json"], - plugins: { json }, - processor: "json/json" - "rules": { - "json/*": ["error", "allowComments"], - // or the equivalent: - "json/*": ["error", {"allowComments": true}] - } - }, - ]; -} +import json from "eslint-plugin-json"; + +export default [ + { + files: ["**/*.json"], + plugins: { json }, + processor: "json/json" + "rules": { + "json/*": ["error", "allowComments"], + // or the equivalent: + "json/*": ["error", {"allowComments": true}] + } + }, +]; ``` ### Custom Configuration (Legacy ESLint Format) @@ -165,7 +163,7 @@ which the VSCode implementation provides by leveraging the #### Will this plugin provide more configuration? -It is now possible as you can see in the [Configuration section](#custom-configuration) +It is now possible as you can see in the [Configuration section](#custom-configuration). Additionally, support for autofixing common errors could be added in the feature. @@ -175,4 +173,4 @@ Not really. `eslint` plugin interface wasn't designed to lint a completely diffe its interface is flexible enough to allow it. So this plugin is certainly unusual. Ideally, your editor would natively supports linting JSON. If it doesn't though, then might as well -use this plugin. Hacky linting is better than no linting :) +use this plugin. Hacky linting is better than no linting :).