Skip to content

Commit

Permalink
Add lint rule enable instructions for map syntax as well (#6361)
Browse files Browse the repository at this point in the history
Resolves #6100
  • Loading branch information
parlough authored Jan 27, 2025
1 parent 69ceaeb commit 0b35a25
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/content/tools/linter-rules/individual-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ underscore_breaker_titles: true
eleventyComputed:
permalink: "/tools/linter-rules/{{lint.name}}.html"
title: "{{ lint.name }}"
description: "Learn more about the {{ lint.name }} linter rule."
description: "Learn about the {{ lint.name }} linter rule."
skipFreshness: true
---

Expand Down Expand Up @@ -85,3 +85,12 @@ linter:
rules:
- {{lint.name}}
```
If you're instead using the YAML map syntax to configure linter rules,
add `{{lint.name}}: true` under **linter > rules**:

```yaml title="analysis_options.yaml"
linter:
rules:
{{lint.name}}: true
```

0 comments on commit 0b35a25

Please sign in to comment.