blob: be6816fb184314b487aab28e53ef05129cf54d98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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",
},
];
|