This project is based on this gist
In the future, this may be evolved to be an npm-publish command-line tool.
- Clone this repository
- Browse to the repository folder
- Run
npm install
npm run scan [filePath]
- Reports will be output to folder
report
Checklist:
These represent files that should be inspected or changed to optimize web layout flow.
[
"./utilities/escapeHTML.ts",
"./utilities/getIsClampEnabled.ts",
"./utilities/getScrollBarSize.js",
"./utilities/index.ts"
]
Report:
These declare the specific files and lines that have flagged layout elements.
[
{
lines: [
{
filePath: './shared/TextField/TextField.tsx',
line: 'if (isFocused) inputField?.current?.focus();',
lineNo: 35
}
]
}
]