codigo0/node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.d.ts
planetazuzu 5d7a6500fe refactor: Fase 1 - Clean Architecture, refactorización modular y eliminación de duplicidades
-  Ticket 1.1: Estructura Clean Architecture en backend
-  Ticket 1.2: Schemas Zod compartidos
-  Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares)
-  Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares)
-  Ticket 1.5: Eliminación de duplicidades (~50 líneas)

Cambios principales:
- Creada estructura Clean Architecture en backend/src/
- Schemas Zod compartidos en backend/src/shared/schemas/
- Refactorización modular de drugs y procedures
- Utilidades genéricas en src/utils/ (filter, validation)
- Eliminados scripts obsoletos y documentación antigua
- Corregidos errores: QueryClient, import test-error-handling
- Build verificado y funcionando correctamente
2026-01-25 21:09:47 +01:00

92 lines
3.1 KiB
TypeScript

import * as estree from 'estree';
import { Rule, ESLint } from 'eslint';
declare const rules: {
'rules-of-hooks': {
meta: {
type: "problem";
docs: {
description: string;
recommended: true;
url: string;
};
};
create(context: Rule.RuleContext): {
onCodePathSegmentStart: (segment: Rule.CodePathSegment) => number;
onCodePathSegmentEnd: () => Rule.CodePathSegment | undefined;
onCodePathStart: () => number;
onCodePathEnd(codePath: Rule.CodePath, codePathNode: Rule.Node): void;
CallExpression(node: estree.CallExpression & Rule.NodeParentExtension): void;
Identifier(node: estree.Identifier & Rule.NodeParentExtension): void;
'CallExpression:exit'(node: estree.CallExpression & Rule.NodeParentExtension): void;
FunctionDeclaration(node: estree.FunctionDeclaration & Rule.NodeParentExtension): void;
ArrowFunctionExpression(node: estree.ArrowFunctionExpression & Rule.NodeParentExtension): void;
};
};
'exhaustive-deps': {
meta: {
type: "suggestion";
docs: {
description: string;
recommended: true;
url: string;
};
fixable: "code";
hasSuggestions: true;
schema: {
type: "object";
additionalProperties: false;
enableDangerousAutofixThisMayCauseInfiniteLoops: boolean;
properties: {
additionalHooks: {
type: "string";
};
enableDangerousAutofixThisMayCauseInfiniteLoops: {
type: "boolean";
};
};
}[];
};
create(context: Rule.RuleContext): {
CallExpression: (node: estree.CallExpression) => void;
};
};
};
declare const configs: {
/** Legacy recommended config, to be used with rc-based configurations */
'recommended-legacy': {
plugins: string[];
rules: {
'react-hooks/rules-of-hooks': "error";
'react-hooks/exhaustive-deps': "warn";
};
};
/**
* 'recommended' is currently aliased to the legacy / rc recommended config) to maintain backwards compatibility.
* This is deprecated and in v6, it will switch to alias the flat recommended config.
*/
recommended: {
plugins: string[];
rules: {
'react-hooks/rules-of-hooks': "error";
'react-hooks/exhaustive-deps': "warn";
};
};
/** Latest recommended config, to be used with flat configurations */
'recommended-latest': {
name: string;
plugins: {
readonly 'react-hooks': ESLint.Plugin;
};
rules: {
'react-hooks/rules-of-hooks': "error";
'react-hooks/exhaustive-deps': "warn";
};
};
};
declare const meta: {
name: string;
};
export { configs, meta, rules };