redlint 3.13.0 → 3.14.0

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 CHANGED
@@ -1,3 +1,14 @@
1
+ 2024.04.09, v3.14.0
2
+
3
+ feature:
4
+ - af1db00 redlint: eslint v9.0.0
5
+ - 9d621ab redlint: @putout/plugin-filesystem v5.0.0
6
+
7
+ 2024.03.01, v3.13.1
8
+
9
+ feature:
10
+ - d0f5983 redlint: improve support of CI
11
+
1
12
  2024.03.01, v3.13.0
2
13
 
3
14
  feature:
package/bin/redlint.js CHANGED
@@ -2,14 +2,12 @@
2
2
 
3
3
  import {join} from 'node:path';
4
4
  import process from 'node:process';
5
- import {
6
- readFile,
7
- writeFile,
8
- } from 'node:fs/promises';
5
+ import {readFile, writeFile} from 'node:fs/promises';
9
6
  import {lintJSON} from 'putout/lint/json';
10
7
  import formatterCodeFrame from '@putout/formatter-codeframe';
11
8
  import formatterDump from '@putout/formatter-dump';
12
9
  import ora from 'ora';
10
+ import {isCI} from 'ci-info';
13
11
  import {help} from '../lib/help/help.js';
14
12
  import {choose} from '../lib/choose.js';
15
13
  import {buildTree} from '../lib/redlint.js';
@@ -27,6 +25,7 @@ import {chooseConvert} from '../lib/convert/index.js';
27
25
  import {convert} from '../lib/convert/convert.js';
28
26
  import {masterConvert} from '../lib/convert/master.js';
29
27
  import {askFilename} from '../lib/dialog.js';
28
+ import {bundle} from '@putout/bundler';
30
29
  import {
31
30
  isScan,
32
31
  isScanDebug,
@@ -48,7 +47,6 @@ import {
48
47
  isExit,
49
48
  isBundleDebug,
50
49
  } from '../lib/menu.js';
51
- import {bundle} from '@putout/bundler';
52
50
 
53
51
  const {log} = console;
54
52
  const {exit} = process;
@@ -110,7 +108,7 @@ async function uiLoop(arg) {
110
108
  const CWD = process.cwd();
111
109
  const result = await buildTree(CWD);
112
110
 
113
- spinner.succeed();
111
+ !isCI && spinner.succeed();
114
112
 
115
113
  if (isGenerateSimple(arg)) {
116
114
  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
- spinner.succeed();
58
+ if (!isCI)
59
+ spinner.succeed();
60
+
62
61
  spinner.suffixText = '';
63
62
 
64
63
  store({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redlint",
3
- "version": "3.13.0",
3
+ "version": "3.14.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Lint Filesystem with 🐊Putout",
@@ -38,7 +38,7 @@
38
38
  "@putout/formatter-dump": "^5.0.0",
39
39
  "@putout/operator-filesystem": "^4.0.1",
40
40
  "@putout/operator-json": "^2.0.0",
41
- "@putout/plugin-filesystem": "^4.0.0",
41
+ "@putout/plugin-filesystem": "^5.0.0",
42
42
  "@putout/plugin-nodejs": "^11.0.0",
43
43
  "@putout/processor-filesystem": "^4.0.0",
44
44
  "chalk": "^5.3.0",
@@ -63,8 +63,7 @@
63
63
  "devDependencies": {
64
64
  "@putout/test": "^9.0.0",
65
65
  "c8": "^9.1.0",
66
- "eslint": "^8.0.1",
67
- "eslint-plugin-n": "^16.0.0",
66
+ "eslint": "^9.0.0",
68
67
  "eslint-plugin-putout": "^22.0.0",
69
68
  "estree-to-babel": "^9.0.0",
70
69
  "just-kebab-case": "^4.2.0",