-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: uses explicit exports over default where possible (#956)
## Description - uses explicit exports over default exports where possible ## Motivation and Context These were leftovers from the cjs -> mjs conversion that added a level of indirection we don't need. ## How Has This Been Tested? - [x] green ci - [x] updated unit tests where applicable ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] Documentation only change - [x] Refactor (non-breaking change which fixes an issue without changing functionality) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
- Loading branch information
Showing
45 changed files
with
555 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import moduleUtl from "./module-utl.mjs"; | ||
import { flatLabel, extractFirstTransgression, addURL } from "./module-utl.mjs"; | ||
import { applyTheme } from "./theming.mjs"; | ||
import { compareModules } from "#graph-utl/compare.mjs"; | ||
|
||
export default function prepareFlatLevel(pResults, pTheme, _, pShowMetrics) { | ||
return pResults.modules | ||
.sort(compareModules) | ||
.map(moduleUtl.flatLabel(pShowMetrics)) | ||
.map(moduleUtl.extractFirstTransgression) | ||
.map(moduleUtl.applyTheme(pTheme)) | ||
.map(moduleUtl.addURL(pResults.summary.optionsUsed?.prefix ?? "")); | ||
.map(flatLabel(pShowMetrics)) | ||
.map(extractFirstTransgression) | ||
.map(applyTheme(pTheme)) | ||
.map(addURL(pResults.summary.optionsUsed?.prefix ?? "")); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import moduleUtl from "./module-utl.mjs"; | ||
import { folderify, extractFirstTransgression, addURL } from "./module-utl.mjs"; | ||
import { applyTheme } from "./theming.mjs"; | ||
import consolidateToFolder from "#graph-utl/consolidate-to-folder.mjs"; | ||
import { compareModules } from "#graph-utl/compare.mjs"; | ||
import stripSelfTransitions from "#graph-utl/strip-self-transitions.mjs"; | ||
// fuk eslint | ||
|
||
export default function prepareFolderLevel(pResults, pTheme, _, pShowMetrics) { | ||
return consolidateToFolder(pResults.modules) | ||
.sort(compareModules) | ||
.map(moduleUtl.extractFirstTransgression) | ||
.map(moduleUtl.folderify(pShowMetrics)) | ||
.map(extractFirstTransgression) | ||
.map(folderify(pShowMetrics)) | ||
.map(stripSelfTransitions) | ||
.map(moduleUtl.applyTheme(pTheme)) | ||
.map(moduleUtl.addURL(pResults.summary.optionsUsed?.prefix ?? "")); | ||
.map(applyTheme(pTheme)) | ||
.map(addURL(pResults.summary.optionsUsed?.prefix ?? "")); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.