normalizeIndent() — react Function Reference
Architecture documentation for the normalizeIndent() function in ReactCompilerRuleFlow-test.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 49daf9f0_f58a_25b4_7898_5f1682a7dbbf["normalizeIndent()"] f23046a7_8ff6_6e84_73a1_6ab58cc3ee68["ReactCompilerRuleFlow-test.ts"] 49daf9f0_f58a_25b4_7898_5f1682a7dbbf -->|defined in| f23046a7_8ff6_6e84_73a1_6ab58cc3ee68 style 49daf9f0_f58a_25b4_7898_5f1682a7dbbf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/__tests__/ReactCompilerRuleFlow-test.ts lines 17–21
function normalizeIndent(strings: TemplateStringsArray): string {
const codeLines = strings[0]?.split('\n') ?? [];
const leftPadding = codeLines[1]?.match(/\s+/)![0] ?? '';
return codeLines.map(line => line.slice(leftPadding.length)).join('\n');
}
Domain
Subdomains
Source
Frequently Asked Questions
What does normalizeIndent() do?
normalizeIndent() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/__tests__/ReactCompilerRuleFlow-test.ts.
Where is normalizeIndent() defined?
normalizeIndent() is defined in packages/eslint-plugin-react-hooks/__tests__/ReactCompilerRuleFlow-test.ts at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free