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.
This commit is contained in:
Amruth Pillai
2026-09-29 18:13:13 +02:00
parent a6ef340c09
commit dc7e1e0431
2 changed files with 26 additions and 0 deletions
+19
View File
@@ -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"
]
}
]
}
}
+7
View File
@@ -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"
}
}