File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,16 +66,16 @@ import { diagnose } from "react-doctor/api";
6666
6767const result = await diagnose (" ./path/to/your/react-project" );
6868
69- console .log (result .score ); // { score: 82, label: "Good" } or null
69+ console .log (result .score ); // { score: 82, label: "Good" } or null
7070console .log (result .diagnostics ); // Array of Diagnostic objects
71- console .log (result .project ); // Detected framework, React version, etc.
71+ console .log (result .project ); // Detected framework, React version, etc.
7272```
7373
7474The ` diagnose ` function accepts an optional second argument:
7575
7676``` js
7777const result = await diagnose (" ." , {
78- lint: true , // run lint checks (default: true)
78+ lint: true , // run lint checks (default: true)
7979 deadCode: true , // run dead code detection (default: true)
8080});
8181```
You can’t perform that action at this time.
0 commit comments