From a33325d675acffe94bf4acc5f4c193ca591f8f97 Mon Sep 17 00:00:00 2001 From: sanex3339 Date: Sun, 22 Mar 2026 12:55:14 +0700 Subject: [PATCH] Fix lint --- .../AbstractIdentifierNamesGenerator.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/generators/identifier-names-generators/AbstractIdentifierNamesGenerator.ts b/src/generators/identifier-names-generators/AbstractIdentifierNamesGenerator.ts index e756d4a8..5b032088 100644 --- a/src/generators/identifier-names-generators/AbstractIdentifierNamesGenerator.ts +++ b/src/generators/identifier-names-generators/AbstractIdentifierNamesGenerator.ts @@ -11,6 +11,11 @@ import { NodeGuards } from '../../node/NodeGuards'; @injectable() export abstract class AbstractIdentifierNamesGenerator implements IIdentifierNamesGenerator { + /** + * @type {number} + */ + private static readonly maxGenerationAttempts: number = 1000; + /** * @type {IOptions} */ @@ -21,11 +26,6 @@ export abstract class AbstractIdentifierNamesGenerator implements IIdentifierNam */ protected readonly randomGenerator: IRandomGenerator; - /** - * @type {number} - */ - private static readonly maxGenerationAttempts: number = 1000; - /** * @type {Set} */ @@ -143,9 +143,9 @@ export abstract class AbstractIdentifierNamesGenerator implements IIdentifierNam protected checkGenerationAttempts(attempts: number): void { if (attempts > AbstractIdentifierNamesGenerator.maxGenerationAttempts) { throw new Error( - 'Unable to generate a valid identifier name. ' - + 'This is likely caused by `reservedNames` patterns that match all generated names. ' - + 'Please check your `reservedNames` option.' + 'Unable to generate a valid identifier name. ' + + 'This is likely caused by `reservedNames` patterns that match all generated names. ' + + 'Please check your `reservedNames` option.' ); } }