redlint 3.22.5 → 4.0.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
|
@@ -8,7 +8,7 @@ const {
|
|
|
8
8
|
findFile,
|
|
9
9
|
} = operator;
|
|
10
10
|
|
|
11
|
-
export const report = (path, {
|
|
11
|
+
export const report = (path, {names}) => names;
|
|
12
12
|
export const fix = () => {};
|
|
13
13
|
export const scan = (rootPath, {push, options}) => {
|
|
14
14
|
const {
|
|
@@ -48,10 +48,7 @@ export const scan = (rootPath, {push, options}) => {
|
|
|
48
48
|
|
|
49
49
|
const sorted = names.sort();
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
});
|
|
55
|
-
}
|
|
51
|
+
push(dirPath, {
|
|
52
|
+
names: sorted,
|
|
53
|
+
});
|
|
56
54
|
};
|
|
57
|
-
|
|
@@ -2,15 +2,12 @@ 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
|
-
|
|
7
5
|
export const readDirectory = (filesystem, {dir, nested, full}) => {
|
|
8
6
|
const source = toJS(filesystem, __filesystem);
|
|
9
7
|
const ast = parse(source);
|
|
10
8
|
|
|
11
|
-
const
|
|
12
|
-
fix:
|
|
13
|
-
fixCount: 1,
|
|
9
|
+
const [{message}] = transform(ast, filesystem, {
|
|
10
|
+
fix: false,
|
|
14
11
|
rules: {
|
|
15
12
|
'get-filenames': ['on', {
|
|
16
13
|
dir,
|
|
@@ -23,5 +20,5 @@ export const readDirectory = (filesystem, {dir, nested, full}) => {
|
|
|
23
20
|
],
|
|
24
21
|
});
|
|
25
22
|
|
|
26
|
-
return
|
|
23
|
+
return message;
|
|
27
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redlint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Lint Filesystem with 🐊Putout",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"fullstore": "^3.0.0",
|
|
50
50
|
"ignore": "^7.0.0",
|
|
51
51
|
"ora": "^8.0.1",
|
|
52
|
-
"putout": "^
|
|
52
|
+
"putout": "^39.0.0",
|
|
53
53
|
"strip-ansi": "^7.1.0",
|
|
54
54
|
"try-to-catch": "^3.0.1"
|
|
55
55
|
},
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"generate"
|
|
64
64
|
],
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@putout/eslint-flat": "^
|
|
66
|
+
"@putout/eslint-flat": "^3.0.0",
|
|
67
67
|
"@putout/test": "^12.0.1",
|
|
68
68
|
"c8": "^10.1.2",
|
|
69
69
|
"eslint": "^9.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
},
|
|
79
79
|
"license": "MIT",
|
|
80
80
|
"engines": {
|
|
81
|
-
"node": ">=
|
|
81
|
+
"node": ">=20"
|
|
82
82
|
},
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|