From 063ebe71e052b5306f0a792c4e804e9806db8ea1 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Tue, 23 Jul 2024 15:29:20 -0300 Subject: [PATCH] chore: remove comments --- src/rules/only-extend-sfCommand.ts | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/rules/only-extend-sfCommand.ts b/src/rules/only-extend-sfCommand.ts index e70dabf..de812d4 100644 --- a/src/rules/only-extend-sfCommand.ts +++ b/src/rules/only-extend-sfCommand.ts @@ -24,32 +24,10 @@ export const onlyExtendSfCommand = RuleCreator.withoutDocs({ }, defaultOptions: [], create(context) { - // function extendsSfCommand(node: TSESTree.ClassDeclaration, context: RuleContext): boolean { - // // Track imported classes and their aliases - // const importedClasses = new Map(); - // - // for (const node of (context.sourceCode).ast.body) { - // if (node.type === 'ImportDeclaration') { - // node.specifiers.forEach(specifier => { - // if (specifier.type === 'ImportSpecifier' && specifier.imported.name === 'SfCommand') { - // importedClasses.set(specifier.local.name, 'SfCommand'); - // } - // // Handle import aliases - // else if (specifier.type === 'ImportSpecifier' && specifier.local.name !== specifier.imported.name) { - // importedClasses.set(specifier.local.name, specifier.imported.name); - // } - // }) - // } - // } - // - // return node.superClass?.type === AST_NODE_TYPES.Identifier && (importedClasses.get(node.superClass.name) == 'SfCommand'); - // } - return isInCommandDirectory(context) ? { ClassDeclaration(node): void { // verify it extends SfCommand - // importedClasses.has() if (!extendsSfCommand(node, context) && node.id) { context.report({ node: node.id,