src/lib/stats/writer.ts
Function writer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const writer = (stats: Stats, options: { output: OUTPUT_FORMAT }, stream: any) => {
const orderedOwners = [...stats.owners].sort((a, b) => {
if (a.owner < b.owner) return -1;
if (a.owner > b.owner) return 1;
return 0;