redlint 6.1.1 → 6.2.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 +15 -0
- package/lib/convert/master.js +1 -0
- package/lib/edit/edit.js +0 -1
- package/lib/pack/master.js +1 -0
- package/lib/pack/pack.js +11 -7
- package/lib/rename/master.js +1 -0
- package/lib/view/view.js +7 -4
- package/package.json +4 -5
package/ChangeLog
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
2026.04.14, v6.2.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- bb8e0ee redlint: pack: simplify
|
|
5
|
+
|
|
6
|
+
2026.03.02, v6.1.2
|
|
7
|
+
|
|
8
|
+
fix:
|
|
9
|
+
- 5ec0b8f redlint: rm unused strip-ansi
|
|
10
|
+
|
|
11
|
+
feature:
|
|
12
|
+
- 1c38435 redlint: @putout/formatter-dump v7.0.0
|
|
13
|
+
- 401d783 redlint: superc8 v12.2.4
|
|
14
|
+
- 4889443 redlint: c8 v11.0.0
|
|
15
|
+
|
|
1
16
|
2026.02.19, v6.1.1
|
|
2
17
|
|
|
3
18
|
feature:
|
package/lib/convert/master.js
CHANGED
package/lib/edit/edit.js
CHANGED
package/lib/pack/master.js
CHANGED
package/lib/pack/pack.js
CHANGED
|
@@ -5,10 +5,8 @@ import {
|
|
|
5
5
|
} from 'putout';
|
|
6
6
|
import {createProgress} from '@putout/engine-runner/progress';
|
|
7
7
|
import * as pluginFilesystem from '@putout/plugin-filesystem';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
merge as originalMerge,
|
|
11
|
-
} from '@putout/processor-filesystem';
|
|
8
|
+
import {create} from '@putout/processor-filesystem/create';
|
|
9
|
+
import {readFileContent as _readFileContent} from '@putout/cli-filesystem';
|
|
12
10
|
|
|
13
11
|
const [, readAllFiles] = pluginFilesystem.rules['read-all-files'];
|
|
14
12
|
const [, replaceCwd] = pluginFilesystem.rules['replace-cwd'];
|
|
@@ -16,15 +14,21 @@ const [, replaceCwd] = pluginFilesystem.rules['replace-cwd'];
|
|
|
16
14
|
export const pack = (from, filesystem, overrides = {}) => {
|
|
17
15
|
const {
|
|
18
16
|
progress = createProgress(),
|
|
19
|
-
|
|
20
|
-
merge = originalMerge,
|
|
17
|
+
readFileContent = _readFileContent,
|
|
21
18
|
} = overrides;
|
|
22
19
|
|
|
20
|
+
const {branch, merge} = create({
|
|
21
|
+
cli: true,
|
|
22
|
+
maybeSimple: true,
|
|
23
|
+
filesystemCLI: {
|
|
24
|
+
readFileContent,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
23
28
|
const [{source}] = branch(filesystem);
|
|
24
29
|
const ast = parse(source);
|
|
25
30
|
|
|
26
31
|
transform(ast, {
|
|
27
|
-
fix: true,
|
|
28
32
|
fixCount: 1,
|
|
29
33
|
progress,
|
|
30
34
|
rules: {
|
package/lib/rename/master.js
CHANGED
package/lib/view/view.js
CHANGED
|
@@ -16,10 +16,13 @@ export const view = (filename, overrides = {}) => {
|
|
|
16
16
|
|
|
17
17
|
for (const [line, nameWithContent] of entries(files)) {
|
|
18
18
|
for (const [name, content] of entries(nameWithContent)) {
|
|
19
|
-
lines.push(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
lines.push(
|
|
20
|
+
codeFrameColumns(dedent(content), {}, {
|
|
21
|
+
highlightCode: true,
|
|
22
|
+
message: `${name}:${line}`,
|
|
23
|
+
}) +
|
|
24
|
+
'\n',
|
|
25
|
+
);
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redlint",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Lint Filesystem with 🐊Putout",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@putout/cli-filesystem": "^3.0.0",
|
|
41
41
|
"@putout/engine-runner": "^28.0.0",
|
|
42
42
|
"@putout/formatter-codeframe": "^10.0.0",
|
|
43
|
-
"@putout/formatter-dump": "^
|
|
43
|
+
"@putout/formatter-dump": "^7.0.0",
|
|
44
44
|
"@putout/operator-filesystem": "^11.0.0",
|
|
45
45
|
"@putout/operator-json": "^3.1.0",
|
|
46
46
|
"@putout/plugin-eslint": "^15.0.0",
|
|
@@ -56,10 +56,8 @@
|
|
|
56
56
|
"ignore": "^7.0.0",
|
|
57
57
|
"jest-diff": "^30.2.0",
|
|
58
58
|
"montag": "^1.2.1",
|
|
59
|
-
"obligator": "^3.0.0",
|
|
60
59
|
"ora": "^9.0.0",
|
|
61
60
|
"putout": "^42.0.0",
|
|
62
|
-
"strip-ansi": "^7.1.0",
|
|
63
61
|
"try-to-catch": "^4.0.0"
|
|
64
62
|
},
|
|
65
63
|
"keywords": [
|
|
@@ -73,12 +71,13 @@
|
|
|
73
71
|
],
|
|
74
72
|
"devDependencies": {
|
|
75
73
|
"@putout/test": "^15.0.0",
|
|
76
|
-
"
|
|
74
|
+
"@supertape/operator-strip": "^1.0.0",
|
|
77
75
|
"eslint": "^10.0.0",
|
|
78
76
|
"eslint-plugin-putout": "^31.0.0",
|
|
79
77
|
"just-kebab-case": "^4.2.0",
|
|
80
78
|
"madrun": "^13.0.0",
|
|
81
79
|
"nodemon": "^3.0.1",
|
|
80
|
+
"superc8": "^12.2.4",
|
|
82
81
|
"supertape": "^12.0.7"
|
|
83
82
|
},
|
|
84
83
|
"license": "MIT",
|