CRBT-Team/Purplet

View on GitHub
packages/purplet/src/config/tsconfig.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function writeTSConfig has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function writeTSConfig(config: ResolvedConfig) {
  const files = await readdir(config.root);
  const matched = searchPaths.filter(file => files.includes(file));

  const rootRelative = (file: string) => posixify(path.relative(config.root, file));
Severity: Major
Found in packages/purplet/src/config/tsconfig.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status