mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-02 17:54:22 +10:00
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:
@@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user