redlint 5.5.0 → 5.6.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
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
2026.02.06, v5.6.1
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- b5a28d1 redlint: @putout/processor-filesystem v8.0.0
|
|
5
|
+
- a520cc3 redlint: @putout/operator-filesystem v11.0.0
|
|
6
|
+
|
|
7
|
+
2026.02.06, v5.6.0
|
|
8
|
+
|
|
9
|
+
feature:
|
|
10
|
+
- 7731f88 redlint: edit: remove-files: show removed files
|
|
11
|
+
|
|
1
12
|
2026.02.05, v5.5.0
|
|
2
13
|
|
|
3
14
|
feature:
|
|
@@ -3,20 +3,24 @@ import {
|
|
|
3
3
|
print,
|
|
4
4
|
transform,
|
|
5
5
|
} from 'putout';
|
|
6
|
-
import {
|
|
7
|
-
branch as originalBranch,
|
|
8
|
-
merge as originalMerge,
|
|
9
|
-
} from '@putout/processor-filesystem';
|
|
6
|
+
import {create} from '@putout/processor-filesystem/create';
|
|
10
7
|
import * as removeFilesPlugin from './remove-files-plugin/index.js';
|
|
8
|
+
import {removeFileWithLog as _removeFileWithLog} from './remove-file-with-log.js';
|
|
11
9
|
|
|
12
10
|
export const removeFiles = (filesystem, {dir, from, to}, overrides = {}) => {
|
|
13
11
|
const {
|
|
14
|
-
|
|
15
|
-
merge = originalMerge,
|
|
12
|
+
removeFile = _removeFileWithLog,
|
|
16
13
|
} = overrides;
|
|
17
14
|
|
|
18
|
-
const
|
|
15
|
+
const {branch, merge} = create({
|
|
16
|
+
cli: true,
|
|
17
|
+
maybeSimple: false,
|
|
18
|
+
filesystemCLI: {
|
|
19
|
+
removeFile,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
19
22
|
|
|
23
|
+
const [{source}] = branch(filesystem);
|
|
20
24
|
const ast = parse(source);
|
|
21
25
|
|
|
22
26
|
transform(ast, filesystem, {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import process from 'node:process';
|
|
2
|
+
import {removeFile as _removeFile} from '@putout/cli-filesystem';
|
|
3
|
+
|
|
4
|
+
const {stdout} = process;
|
|
5
|
+
const write = stdout.write.bind(stdout);
|
|
6
|
+
|
|
7
|
+
export const removeFileWithLog = (name, overrides = {}) => {
|
|
8
|
+
const {
|
|
9
|
+
removeFile = _removeFile,
|
|
10
|
+
log = write,
|
|
11
|
+
} = overrides;
|
|
12
|
+
|
|
13
|
+
removeFile(name);
|
|
14
|
+
log(`⛳️ Removed '${name}'\n`);
|
|
15
|
+
};
|
package/lib/lint/lint.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {transformAsync, parse} from 'putout';
|
|
2
2
|
import {parseOptions} from 'putout/parse-options';
|
|
3
3
|
import {createProgress} from '@putout/engine-runner/progress';
|
|
4
|
-
import {
|
|
4
|
+
import {inject, eject} from '@putout/operator-filesystem/maybe';
|
|
5
5
|
import {toJS, __filesystem} from '@putout/operator-json';
|
|
6
6
|
import * as filesystemCLI from '@putout/cli-filesystem';
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ export const lint = async (filesystem, overrides = {}) => {
|
|
|
12
12
|
progress = createProgress(),
|
|
13
13
|
} = overrides;
|
|
14
14
|
|
|
15
|
-
!test &&
|
|
15
|
+
!test && inject(filesystemCLI);
|
|
16
16
|
|
|
17
17
|
const source = toJS(filesystem, __filesystem);
|
|
18
18
|
|
|
@@ -29,7 +29,7 @@ export const lint = async (filesystem, overrides = {}) => {
|
|
|
29
29
|
progress,
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
!test &&
|
|
32
|
+
!test && eject(filesystemCLI);
|
|
33
33
|
|
|
34
34
|
return places;
|
|
35
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redlint",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Lint Filesystem with 🐊Putout",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"@putout/engine-runner": "^27.0.0",
|
|
41
41
|
"@putout/formatter-codeframe": "^10.0.0",
|
|
42
42
|
"@putout/formatter-dump": "^6.1.0",
|
|
43
|
-
"@putout/operator-filesystem": "^
|
|
43
|
+
"@putout/operator-filesystem": "^11.0.0",
|
|
44
44
|
"@putout/operator-json": "^3.1.0",
|
|
45
45
|
"@putout/plugin-eslint": "^15.0.0",
|
|
46
46
|
"@putout/plugin-filesystem": "^12.0.0",
|
|
47
47
|
"@putout/plugin-nodejs": "^20.0.0",
|
|
48
48
|
"@putout/plugin-react": "^3.0.0",
|
|
49
|
-
"@putout/processor-filesystem": "^
|
|
49
|
+
"@putout/processor-filesystem": "^8.0.0",
|
|
50
50
|
"chalk": "^5.3.0",
|
|
51
51
|
"ci-info": "^4.0.0",
|
|
52
52
|
"dedent": "^1.7.1",
|