From f8c3e56814aa17cb825196b839b875ba05982af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio=20Rocha?= Date: Fri, 6 Dec 2024 15:23:27 +0000 Subject: [PATCH] fix eslint generator --- tools/eslintConfigCreator.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/eslintConfigCreator.go b/tools/eslintConfigCreator.go index ec24851..4b9ef69 100644 --- a/tools/eslintConfigCreator.go +++ b/tools/eslintConfigCreator.go @@ -26,15 +26,16 @@ func CreateEslintConfig(configuration ToolConfiguration) string { for _, patternConfiguration := range configuration.PatternsConfiguration { rule := strings.TrimPrefix(patternConfiguration.PatternId, "ESLint8_") + fmt.Println("Rule:", rule) const tempstring = "TEMPORARYSTRING" rule = strings.ReplaceAll(rule, "__", tempstring) rule = strings.ReplaceAll(rule, "_", "/") rule = strings.ReplaceAll(rule, tempstring, "_") - if strings.Contains(rule, "/") { + /*if strings.Contains(rule, "/") { continue - } + }*/ parametersString := ""