normalizeIndent() — react Function Reference
Architecture documentation for the normalizeIndent() function in ESLintRulesOfHooks-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD c80e67ec_4c6a_b1fd_8364_44ff14eb19a5["normalizeIndent()"] 349c8f14_8a06_676b_ce09_109470af93c6["ESLintRulesOfHooks-test.js"] c80e67ec_4c6a_b1fd_8364_44ff14eb19a5 -->|defined in| 349c8f14_8a06_676b_ce09_109470af93c6 style c80e67ec_4c6a_b1fd_8364_44ff14eb19a5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js lines 22–26
function normalizeIndent(strings) {
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__/ESLintRulesOfHooks-test.js.
Where is normalizeIndent() defined?
normalizeIndent() is defined in packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free