Skip to content

Commit

Permalink
docs: fix json example for editor autocompletion with schema
Browse files Browse the repository at this point in the history
  • Loading branch information
zavoloklom committed Dec 15, 2024
1 parent d93a930 commit 64a04a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,17 @@ Here is an example of a configuration file using JSON format:
To enable editor autocompletion in a JSON configuration file, add a `$schema` property. If you have installed `dclint`:

```json
"$schema": "./node_modules/dclint/schemas/linter-config.schema.json",
{
"$schema": "./node_modules/dclint/schemas/linter-config.schema.json"
}
```

Otherwise:

```json
"$schema": "https://raw.githubusercontent.com/zavoloklom/docker-compose-linter/refs/heads/main/schemas/linter-config.schema.json",
{
"$schema": "https://raw.githubusercontent.com/zavoloklom/docker-compose-linter/refs/heads/main/schemas/linter-config.schema.json"
}
```

### Configure Rules
Expand Down

0 comments on commit 64a04a6

Please sign in to comment.