From 4ec507aab5fb7ffd7339fab42cc7aa2b50c10348 Mon Sep 17 00:00:00 2001 From: Ilia Kebets Date: Tue, 26 Nov 2024 16:06:20 +0100 Subject: [PATCH] apply victor's fix --- packages/jsts/src/rules/S6418/rule.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/jsts/src/rules/S6418/rule.ts b/packages/jsts/src/rules/S6418/rule.ts index 8e287233631..db40e4905a0 100644 --- a/packages/jsts/src/rules/S6418/rule.ts +++ b/packages/jsts/src/rules/S6418/rule.ts @@ -26,7 +26,6 @@ import { import { meta } from './meta.js'; import { JSONSchema4 } from '@typescript-eslint/utils/json-schema'; import { FromSchema } from 'json-schema-to-ts'; -import { error } from '../../../../shared/src/helpers/logging.js'; import estree from 'estree'; import { TSESTree } from '@typescript-eslint/utils'; @@ -181,7 +180,7 @@ function buildSecretWordRegexps(secretWords: string) { try { return secretWords.split(',').map(word => new RegExp(`(${word})`, 'i')); } catch (e) { - error( + console.error( `Invalid characters provided to rule S6418 'hardcoded-secrets' parameter "secretWords": "${secretWords}" falling back to default: "${DEFAULT_SECRET_WORDS}". Error: ${e}`, ); return buildSecretWordRegexps(DEFAULT_SECRET_WORDS);