Skip to content

Commit 185e85c

Browse files
committed
docs: add an icon to display if a linter has a confiiguration or not
1 parent 2b8e3f0 commit 185e85c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/src/docs/usage/linters.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Linters
33
---
44

5-
import { FaGithub, FaGitlab, FaArrowUp } from "react-icons/fa";
5+
import { FaGithub, FaGitlab, FaArrowUp, FaCog } from "react-icons/fa";
66

77
To see a list of supported linters and which linters are enabled/disabled:
88

scripts/website/expand_templates/linters.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ func getLintersListMarkdown(enabled bool) string {
9292
func getName(lc *types.LinterWrapper) string {
9393
name := spanWithID(listItemPrefix+lc.Name, "", "")
9494

95-
if hasSettings(lc.Name) {
96-
name += fmt.Sprintf("[%[1]s](#%[1]s \"%[1]s configuration\")", lc.Name)
95+
if hasSettings(lc.Name) && lc.Deprecation == nil {
96+
name += fmt.Sprintf("[%[1]s&nbsp;%[2]s](#%[1]s \"%[1]s configuration\")", lc.Name, "<FaCog size={'0.8rem'} />")
9797
} else {
9898
name += fmt.Sprintf("%[1]s[%[2]s](#%[2]s \"%[2]s has no configuration\")", spanWithID(lc.Name, "", ""), lc.Name)
9999
}

0 commit comments

Comments
 (0)