emmercm/metalsmith-plugins

View on GitHub
packages/metalsmith-html-linter/index.ts

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function upgradeHtmllintConfig has 28 lines of code (exceeds 25 allowed). Consider refactoring.
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(
Severity: Minor
Found in packages/metalsmith-html-linter/index.ts - About 1 hr to fix
    Category
    Status