× typescript(TS2322): Type '{ propName: string; allowedFor: [string, string, string, string]; allowedForPatterns: [string]; }' is not assignable to type 'ForbidItem'.
╭─[oxlint.config.ts:20:13]
19 │ forbid: [
20 │ ╭─▶ {
21 │ │ propName: "className",
22 │ │ allowedFor: ["AdaptiveImage", "Icon", "Iconify", "RichContent"],
23 │ │ allowedForPatterns: ["**Tag"],
24 │ ╰─▶ },
25 │ { propName: "style", allowedFor: ["Iconify"], allowedForPatterns: ["**Tag"] },
╰────
× typescript(TS2322): Type '{ propName: string; allowedFor: [string]; allowedForPatterns: [string]; }' is not assignable to type 'ForbidItem'.
╭─[oxlint.config.ts:25:13]
24 │ },
25 │ { propName: "style", allowedFor: ["Iconify"], allowedForPatterns: ["**Tag"] },
· ─────────────────────────────────────────────────────────────────────────────
26 │ ],
╰────
Found 22 warnings and 2 errors.
Finished in 337ms on 45 files with 578 rules using 10 threads.
[ELIFECYCLE] Command failed with exit code 1.
However, the usage is correct. ForbidItemObject requires all allowed/disallowed fields by mistake:
1-4 allowed/disallowed field shall all be considered as legal.
However, the usage is correct. ForbidItemObject requires all allowed/disallowed fields by mistake:
1-4 allowed/disallowed field shall all be considered as legal.