redlint 3.21.1 → 3.21.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,8 @@
1
+ 2025.03.13, v3.21.2
2
+
3
+ feature:
4
+ - f4e31ee redlint: edit: add
5
+
1
6
  2025.03.13, v3.21.1
2
7
 
3
8
  feature:
@@ -3,7 +3,7 @@ import {operator} from 'putout';
3
3
 
4
4
  const {getFilename} = operator;
5
5
 
6
- export const report = (path, {sorted}) => sorted;
6
+ export const report = (path, {name}) => name;
7
7
  export const fix = () => {};
8
8
  export const scan = (path, {push, trackFile, options}) => {
9
9
  const {
@@ -45,7 +45,9 @@ export const scan = (path, {push, trackFile, options}) => {
45
45
 
46
46
  const sorted = names.sort();
47
47
 
48
- push(path, {
49
- sorted,
50
- });
48
+ for (const name of sorted) {
49
+ push(path, {
50
+ name,
51
+ });
52
+ }
51
53
  };
@@ -2,11 +2,13 @@ import {parse, transform} from 'putout';
2
2
  import {__filesystem, toJS} from '@putout/operator-json';
3
3
  import * as getFileNames from './get-filenames/index.js';
4
4
 
5
+ const getMessage = ({message}) => message;
6
+
5
7
  export const readDirectory = (filesystem, {dir, recursive, full}) => {
6
8
  const source = toJS(filesystem, __filesystem);
7
9
  const ast = parse(source);
8
10
 
9
- const [{message}] = transform(ast, filesystem, {
11
+ const places = transform(ast, filesystem, {
10
12
  fix: true,
11
13
  fixCount: 1,
12
14
  rules: {
@@ -21,5 +23,5 @@ export const readDirectory = (filesystem, {dir, recursive, full}) => {
21
23
  ],
22
24
  });
23
25
 
24
- return message;
26
+ return places.map(getMessage);
25
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redlint",
3
- "version": "3.21.1",
3
+ "version": "3.21.2",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Lint Filesystem with 🐊Putout",