From dc7e1e043176a7842e952b90b9ddd3d95f22f233 Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Tue, 29 Sep 2026 18:13:13 +0200 Subject: [PATCH] chore: configure react doctor for this repo Turns off the React Compiler "todo" rule (it lints before the Lingui macro runs, so it flags code that compiles) and only-export-components, ignores test fixtures for dialog/label rules, and turns off two rules that don't apply to the single-pass PDF renderer. --- doctor.config.json | 19 +++++++++++++++++++ packages/pdf/doctor.config.json | 7 +++++++ 2 files changed, 26 insertions(+) create mode 100644 doctor.config.json create mode 100644 packages/pdf/doctor.config.json diff --git a/doctor.config.json b/doctor.config.json new file mode 100644 index 000000000..d24baabc8 --- /dev/null +++ b/doctor.config.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://react.doctor/schema/config.json", + "rules": { + "react-hooks-js/todo": "off", + "react-doctor/only-export-components": "off" + }, + "ignore": { + "overrides": [ + { + "files": ["**/*.test.ts", "**/*.test.tsx"], + "rules": [ + "react-doctor/shadcn-dialog-content-requires-title", + "react-doctor/shadcn-form-item-requires-label", + "react-doctor/no-json-parse-stringify-clone" + ] + } + ] + } +} diff --git a/packages/pdf/doctor.config.json b/packages/pdf/doctor.config.json new file mode 100644 index 000000000..f974294f4 --- /dev/null +++ b/packages/pdf/doctor.config.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://react.doctor/schema/config.json", + "rules": { + "react-doctor/no-array-index-as-key": "off", + "react-doctor/context-provider-value-from-unmemoized-local-literal": "off" + } +}