Skip to content

Commit 7251ff2

Browse files
committed
refactor: use AggregateError when throwing
1 parent 9adad39 commit 7251ff2

File tree

5 files changed

+286
-296
lines changed

5 files changed

+286
-296
lines changed

boundaries.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
const libDir = "lib";
22

3+
// EXPORTS
4+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
5+
36
export const ELEMENTS = [
47
{ type: "shared", pattern: "src/util", mode: "folder" },
58
{ type: "main", pattern: "src/main.tsx", mode: "full" },
@@ -36,10 +39,13 @@ export const ELEMENT_TYPE_RULES = [
3639
];
3740

3841
export const EXTERNAL_RULES = [
39-
{ from: "*", allow: ["assert", "lodash", "luxon", "path", "utility-types"] },
42+
{ from: "*", allow: ["aggregate-error", "assert", "lodash", "luxon", "path", "utility-types"] },
4043
{ from: "lib", allow: "${from.lib}" },
4144
];
4245

46+
// HELPERS
47+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
48+
4349
function defineFolderScope(folderName) {
4450
return { type: folderName, pattern: `src/(${folderName})/*`, capture: ["scope", "elementName"], mode: "folder" };
4551
}

0 commit comments

Comments
 (0)