Skip to content

Commit c05f4b0

Browse files
committed
fix
1 parent af37da8 commit c05f4b0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/react-doctor/src/scan.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ const printSummary = (
314314
logger.dim(` Share your results: ${highlighter.info(shareUrl)}`);
315315
};
316316

317-
export const scan = async (directory: string, inputOptions: ScanOptions = {}): Promise<ScanResult> => {
317+
export const scan = async (
318+
directory: string,
319+
inputOptions: ScanOptions = {},
320+
): Promise<ScanResult> => {
318321
const startTime = performance.now();
319322
const projectInfo = discoverProject(directory);
320323
const userConfig = loadConfig(directory);

packages/react-doctor/src/utils/calculate-score.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ const estimateScoreLocally = (diagnostics: Diagnostic[]): EstimatedScoreResult =
5454
const { errorRuleCount, warningRuleCount } = countUniqueRules(diagnostics);
5555

5656
const currentScore = scoreFromRuleCounts(errorRuleCount, warningRuleCount);
57-
const estimatedUnfixedErrorRuleCount = Math.round(errorRuleCount * (1 - ERROR_ESTIMATED_FIX_RATE));
57+
const estimatedUnfixedErrorRuleCount = Math.round(
58+
errorRuleCount * (1 - ERROR_ESTIMATED_FIX_RATE),
59+
);
5860
const estimatedUnfixedWarningRuleCount = Math.round(
5961
warningRuleCount * (1 - WARNING_ESTIMATED_FIX_RATE),
6062
);

0 commit comments

Comments
 (0)