diff options
Diffstat (limited to 'scripts/boundary-allowlist.ts')
| -rw-r--r-- | scripts/boundary-allowlist.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/boundary-allowlist.ts b/scripts/boundary-allowlist.ts new file mode 100644 index 0000000..be6816f --- /dev/null +++ b/scripts/boundary-allowlist.ts @@ -0,0 +1,16 @@ +export type Exemption = { + readonly path: string; + readonly rule: string; + readonly count: number; + readonly reason: string; +}; + +export const ALLOWLIST: ReadonlyArray<Exemption> = [ + { + path: "src/util/sharp-shim.ts", + rule: "inline-object-cast", + count: 1, + reason: + "sharp is an optional dependency resolved by a dynamic import, so its shape is unknown at compile time; the cast only claims an optional .default and every value read off it is re-checked with typeof before use", + }, +]; |
