redlint 3.13.0 → 3.13.1
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/ChangeLog +5 -0
- package/bin/redlint.js +2 -1
- package/lib/spinner.js +4 -5
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/bin/redlint.js
CHANGED
|
@@ -10,6 +10,7 @@ import {lintJSON} from 'putout/lint/json';
|
|
|
10
10
|
import formatterCodeFrame from '@putout/formatter-codeframe';
|
|
11
11
|
import formatterDump from '@putout/formatter-dump';
|
|
12
12
|
import ora from 'ora';
|
|
13
|
+
import {isCI} from 'ci-info';
|
|
13
14
|
import {help} from '../lib/help/help.js';
|
|
14
15
|
import {choose} from '../lib/choose.js';
|
|
15
16
|
import {buildTree} from '../lib/redlint.js';
|
|
@@ -110,7 +111,7 @@ async function uiLoop(arg) {
|
|
|
110
111
|
const CWD = process.cwd();
|
|
111
112
|
const result = await buildTree(CWD);
|
|
112
113
|
|
|
113
|
-
spinner.succeed();
|
|
114
|
+
!isCI && spinner.succeed();
|
|
114
115
|
|
|
115
116
|
if (isGenerateSimple(arg)) {
|
|
116
117
|
await writeFile('.filesystem.json', lintJSON(stringify(convertToSimple(result))));
|
package/lib/spinner.js
CHANGED
|
@@ -4,10 +4,7 @@ import {isCI} from 'ci-info';
|
|
|
4
4
|
|
|
5
5
|
export function setStart(rule, store) {
|
|
6
6
|
const text = rule.replace('/', ': ');
|
|
7
|
-
const spinner = ora(
|
|
8
|
-
text,
|
|
9
|
-
isEnabled: !isCI,
|
|
10
|
-
}).start();
|
|
7
|
+
const spinner = ora(text).start();
|
|
11
8
|
|
|
12
9
|
spinner.suffixText = '';
|
|
13
10
|
|
|
@@ -58,7 +55,9 @@ export function setSuffixText(store, {percent}) {
|
|
|
58
55
|
export function setSuccess(store) {
|
|
59
56
|
const {spinner} = store();
|
|
60
57
|
|
|
61
|
-
|
|
58
|
+
if (!isCI)
|
|
59
|
+
spinner.succeed();
|
|
60
|
+
|
|
62
61
|
spinner.suffixText = '';
|
|
63
62
|
|
|
64
63
|
store({
|