redlint 6.5.0 → 6.5.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/ChangeLog
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
2026.06.05, v6.5.2
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- fa9d692 redlint: convert: move out
|
|
5
|
+
|
|
6
|
+
2026.06.05, v6.5.1
|
|
7
|
+
|
|
8
|
+
fix:
|
|
9
|
+
- 9819cdc redlint: convert: masterConvert: filename
|
|
10
|
+
|
|
11
|
+
feature:
|
|
12
|
+
- 3a8aa1f redlint: supertape v13.2.0
|
|
13
|
+
|
|
1
14
|
2026.05.04, v6.5.0
|
|
2
15
|
|
|
3
16
|
feature:
|
package/bin/redlint.js
CHANGED
|
@@ -27,7 +27,7 @@ import {version} from '../lib/cli/version.js';
|
|
|
27
27
|
import {chooseConvert} from '../lib/convert/index.js';
|
|
28
28
|
import {chooseRename} from '../lib/rename/index.js';
|
|
29
29
|
import {convert} from '../lib/convert/convert.js';
|
|
30
|
-
import {
|
|
30
|
+
import {runConvert} from '../lib/convert/run-convert.js';
|
|
31
31
|
import {askFilename} from '../lib/dialog.js';
|
|
32
32
|
import {masterRename} from '../lib/rename/master.js';
|
|
33
33
|
import {view} from '../lib/view/view.js';
|
|
@@ -55,7 +55,6 @@ import {
|
|
|
55
55
|
isBack,
|
|
56
56
|
isExit,
|
|
57
57
|
isBundleDebug,
|
|
58
|
-
isConvertRCToFlat,
|
|
59
58
|
isEdit,
|
|
60
59
|
isView,
|
|
61
60
|
VIEW,
|
|
@@ -184,14 +183,14 @@ async function uiLoop(arg) {
|
|
|
184
183
|
}
|
|
185
184
|
|
|
186
185
|
if (isConvertChosen(arg)) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
186
|
+
await runConvert(arg, filesystem);
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (isConvertChosenDebug(arg)) {
|
|
191
|
+
await runConvert(arg, filesystem, {
|
|
192
|
+
convert,
|
|
193
|
+
});
|
|
195
194
|
return;
|
|
196
195
|
}
|
|
197
196
|
|
|
@@ -205,15 +204,6 @@ async function uiLoop(arg) {
|
|
|
205
204
|
return;
|
|
206
205
|
}
|
|
207
206
|
|
|
208
|
-
if (isConvertChosenDebug(arg)) {
|
|
209
|
-
const filename = await askFilename();
|
|
210
|
-
|
|
211
|
-
if (filename)
|
|
212
|
-
await convert(filename, arg, filesystem);
|
|
213
|
-
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
207
|
if (isScan(arg)) {
|
|
218
208
|
const places = await masterLint(filesystem, {
|
|
219
209
|
fix: false,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {askFilename} from '../dialog.js';
|
|
2
|
+
import {isConvertRCToFlat} from '../menu.js';
|
|
3
|
+
import {masterConvert} from './master.js';
|
|
4
|
+
|
|
5
|
+
export const runConvert = async (arg, filesystem, overrides = {}) => {
|
|
6
|
+
const {
|
|
7
|
+
askFilename: getFilename = askFilename,
|
|
8
|
+
convert = masterConvert,
|
|
9
|
+
isRCToFlat = isConvertRCToFlat,
|
|
10
|
+
} = overrides;
|
|
11
|
+
|
|
12
|
+
let filename = '.eslintrc.json';
|
|
13
|
+
|
|
14
|
+
if (!isRCToFlat(arg))
|
|
15
|
+
filename = await getFilename();
|
|
16
|
+
|
|
17
|
+
if (filename)
|
|
18
|
+
return await convert(filename, arg, filesystem);
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redlint",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Lint Filesystem with 🐊Putout",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"madrun": "^13.0.0",
|
|
82
82
|
"nodemon": "^3.0.1",
|
|
83
83
|
"superc8": "^12.2.4",
|
|
84
|
-
"supertape": "^
|
|
84
|
+
"supertape": "^13.2.0"
|
|
85
85
|
},
|
|
86
86
|
"license": "MIT",
|
|
87
87
|
"engines": {
|