Skip to content

Commit

Permalink
apply victor's fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kebetsi committed Nov 26, 2024
1 parent 54c313c commit 4ec507a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/jsts/src/rules/S6418/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4ec507a

Please sign in to comment.