react-doctor 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +12 -10
- package/dist/eslint-plugin.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -212,7 +212,10 @@ const finalize = (method, originalText, displayText) => {
|
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
214
|
sharedInstance.stop();
|
|
215
|
-
ora(
|
|
215
|
+
ora({
|
|
216
|
+
text: displayText,
|
|
217
|
+
indent: 2
|
|
218
|
+
}).start()[method](displayText);
|
|
216
219
|
const [remainingText] = pendingTexts;
|
|
217
220
|
if (remainingText) sharedInstance.text = remainingText;
|
|
218
221
|
sharedInstance.start();
|
|
@@ -221,7 +224,10 @@ const spinner = (text) => ({ start() {
|
|
|
221
224
|
if (isSilent) return noopHandle;
|
|
222
225
|
activeCount++;
|
|
223
226
|
pendingTexts.add(text);
|
|
224
|
-
if (!sharedInstance) sharedInstance = ora({
|
|
227
|
+
if (!sharedInstance) sharedInstance = ora({
|
|
228
|
+
text,
|
|
229
|
+
indent: 2
|
|
230
|
+
}).start();
|
|
225
231
|
else sharedInstance.text = text;
|
|
226
232
|
const handle = {
|
|
227
233
|
succeed: (displayText) => {
|
|
@@ -3251,18 +3257,13 @@ const printDiagnostics = (diagnostics, isVerbose, rootDirectory) => {
|
|
|
3251
3257
|
const visibleRuleGroups = isVerbose ? sortedRuleGroups : sortedRuleGroups.slice(0, 5);
|
|
3252
3258
|
const hiddenRuleGroups = isVerbose ? [] : sortedRuleGroups.slice(5);
|
|
3253
3259
|
const ruleNameColumnWidth = computeRuleNameColumnWidth(visibleRuleGroups.map(([ruleKey]) => ruleKey));
|
|
3254
|
-
visibleRuleGroups.forEach(([ruleKey, ruleDiagnostics]
|
|
3260
|
+
visibleRuleGroups.forEach(([ruleKey, ruleDiagnostics]) => {
|
|
3255
3261
|
if (isVerbose) {
|
|
3256
3262
|
printVerboseRuleGroup(ruleKey, ruleDiagnostics, ruleNameColumnWidth);
|
|
3257
3263
|
return;
|
|
3258
3264
|
}
|
|
3259
|
-
|
|
3260
|
-
printDetailedRuleGroup(ruleKey, ruleDiagnostics, rootDirectory, ruleNameColumnWidth);
|
|
3261
|
-
return;
|
|
3262
|
-
}
|
|
3263
|
-
printCompactRuleGroupLine(ruleKey, ruleDiagnostics, ruleNameColumnWidth);
|
|
3265
|
+
printDetailedRuleGroup(ruleKey, ruleDiagnostics, rootDirectory, ruleNameColumnWidth);
|
|
3264
3266
|
});
|
|
3265
|
-
if (visibleRuleGroups.length > 1 && !isVerbose) logger.break();
|
|
3266
3267
|
if (hiddenRuleGroups.length > 0) printHiddenDiagnosticsSummary(hiddenRuleGroups);
|
|
3267
3268
|
};
|
|
3268
3269
|
const printHiddenDiagnosticsSummary = (hiddenRuleGroups) => {
|
|
@@ -3608,6 +3609,7 @@ const runScan = async (directory, options, userConfig, startTime) => {
|
|
|
3608
3609
|
else printNoScoreHeader(noScoreMessage);
|
|
3609
3610
|
return buildResult();
|
|
3610
3611
|
}
|
|
3612
|
+
logger.break();
|
|
3611
3613
|
printDiagnostics(diagnostics, options.verbose, directory);
|
|
3612
3614
|
const displayedSourceFileCount = isDiffMode ? includePaths.length : lintSourceFileCount;
|
|
3613
3615
|
const shouldShowShareLink = !options.offline && options.share;
|
|
@@ -4026,7 +4028,7 @@ const promptProjectSelection = async (workspacePackages, rootDirectory) => {
|
|
|
4026
4028
|
};
|
|
4027
4029
|
//#endregion
|
|
4028
4030
|
//#region src/cli.ts
|
|
4029
|
-
const VERSION = "0.1.
|
|
4031
|
+
const VERSION = "0.1.2";
|
|
4030
4032
|
const VALID_FAIL_ON_LEVELS = new Set([
|
|
4031
4033
|
"error",
|
|
4032
4034
|
"warning",
|
package/dist/eslint-plugin.js
CHANGED
package/package.json
CHANGED