From f8a64f078e1f9c53711b5a95308cb75601ec7c2b Mon Sep 17 00:00:00 2001 From: Rene Arumetsa Date: Fri, 1 May 2026 19:49:43 +0300 Subject: [PATCH] Fix esling --- src/components/CS2Rules.tsx | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/src/components/CS2Rules.tsx b/src/components/CS2Rules.tsx index b63b8e6..55d9095 100644 --- a/src/components/CS2Rules.tsx +++ b/src/components/CS2Rules.tsx @@ -60,27 +60,20 @@ function RuleItem({ rule, index }: { rule: string | { main: string; sub: (string } export default function CS2Rules({ sections }: CS2RulesProps) { - let ruleCounter = 0; - return (
- {sections.map((section, sectionIndex) => { - const startIndex = ruleCounter; - ruleCounter += section.rules.length; - - return ( -
-

- {sectionIndex + 1}) {section.title} -

-
    - {section.rules.map((rule, ruleIndex) => ( - - ))} -
-
- ); - })} + {sections.map((section, sectionIndex) => ( +
+

+ {sectionIndex + 1}) {section.title} +

+
    + {section.rules.map((rule, ruleIndex) => ( + + ))} +
+
+ ))}
); }