Skip to content

Commit 0b35a25

Browse files
authored
Add lint rule enable instructions for map syntax as well (#6361)
Resolves #6100
1 parent 69ceaeb commit 0b35a25

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/content/tools/linter-rules/individual-rules.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ underscore_breaker_titles: true
99
eleventyComputed:
1010
permalink: "/tools/linter-rules/{{lint.name}}.html"
1111
title: "{{ lint.name }}"
12-
description: "Learn more about the {{ lint.name }} linter rule."
12+
description: "Learn about the {{ lint.name }} linter rule."
1313
skipFreshness: true
1414
---
1515

@@ -85,3 +85,12 @@ linter:
8585
rules:
8686
- {{lint.name}}
8787
```
88+
89+
If you're instead using the YAML map syntax to configure linter rules,
90+
add `{{lint.name}}: true` under **linter > rules**:
91+
92+
```yaml title="analysis_options.yaml"
93+
linter:
94+
rules:
95+
{{lint.name}}: true
96+
```

0 commit comments

Comments
 (0)