packages/metalsmith-html-linter/index.ts
Showing 1 of 1 total issue
Function upgradeHtmllintConfig
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const upgradeHtmllintConfig = (htmllint: LegacyLinterConfig): LinterConfig => { const config: { [key: string]: unknown } = {}; // https://github.com/linthtml/linthtml/blob/0.3.0/docs/migrations.md const rules = Object.keys(htmllint).reduce(