Skip to content

Commit

Permalink
Fix README.md: remove one more set of curly brackets (#91)
Browse files Browse the repository at this point in the history
* Fix one more curly bracket

* Fix unintended changes of line endings
  • Loading branch information
BePo65 authored Jun 3, 2024
1 parent 8d84ee2 commit 543b680
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.

Expand All @@ -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 :).

0 comments on commit 543b680

Please sign in to comment.