redlint 6.4.1 → 6.5.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 +15 -0
- package/bin/redlint.js +1 -1
- package/lib/edit/help.js +1 -1
- package/lib/help/help.js +1 -1
- package/lib/help/logo.js +1 -1
- package/lib/test/get-fixture-names/get-fixture-names-plugin/index.js +1 -1
- package/lib/test/get-fixture-names/get-fixture-only-names-plugin/index.js +1 -1
- package/lib/view/view.js +6 -1
- package/package.json +5 -4
package/ChangeLog
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
2026.06.05, v6.5.1
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- 9819cdc redlint: convert: masterConvert: filename
|
|
5
|
+
|
|
6
|
+
feature:
|
|
7
|
+
- 3a8aa1f redlint: supertape v13.2.0
|
|
8
|
+
|
|
9
|
+
2026.05.04, v6.5.0
|
|
10
|
+
|
|
11
|
+
feature:
|
|
12
|
+
- 50ca776 redlint: @putout/plugin-react v4.0.1
|
|
13
|
+
- 5a7ae00 redlint: montag v2.0.1
|
|
14
|
+
- d9736f6 redlint: view: no file found
|
|
15
|
+
|
|
1
16
|
2026.04.15, v6.4.1
|
|
2
17
|
|
|
3
18
|
feature:
|
package/bin/redlint.js
CHANGED
package/lib/edit/help.js
CHANGED
package/lib/help/help.js
CHANGED
package/lib/help/logo.js
CHANGED
package/lib/view/view.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {readFileSync as _readFileSync} from 'node:fs';
|
|
2
2
|
import {codeFrameColumns} from '@putout/babel';
|
|
3
3
|
import dedent from 'dedent';
|
|
4
|
+
import {tryCatch} from 'try-catch';
|
|
4
5
|
import {parseFiles} from './parse-files/index.js';
|
|
5
6
|
|
|
6
7
|
const {entries} = Object;
|
|
@@ -11,7 +12,11 @@ export const view = (filename, overrides = {}) => {
|
|
|
11
12
|
} = overrides;
|
|
12
13
|
|
|
13
14
|
const lines = [];
|
|
14
|
-
const filesystem = readFileSync
|
|
15
|
+
const [error, filesystem] = tryCatch(readFileSync, filename, 'utf8');
|
|
16
|
+
|
|
17
|
+
if (error)
|
|
18
|
+
return error.message;
|
|
19
|
+
|
|
15
20
|
const files = parseFiles(filesystem);
|
|
16
21
|
|
|
17
22
|
for (const [line, nameWithContent] of entries(files)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redlint",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Lint Filesystem with 🐊Putout",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@putout/plugin-eslint": "^15.0.0",
|
|
48
48
|
"@putout/plugin-filesystem": "^13.0.0",
|
|
49
49
|
"@putout/plugin-nodejs": "^21.0.0",
|
|
50
|
-
"@putout/plugin-react": "^
|
|
50
|
+
"@putout/plugin-react": "^4.0.1",
|
|
51
51
|
"@putout/processor-filesystem": "^8.0.0",
|
|
52
52
|
"chalk": "^5.3.0",
|
|
53
53
|
"ci-info": "^4.0.0",
|
|
@@ -56,10 +56,11 @@
|
|
|
56
56
|
"fullstore": "^4.0.0",
|
|
57
57
|
"ignore": "^7.0.0",
|
|
58
58
|
"jest-diff": "^30.2.0",
|
|
59
|
-
"montag": "^
|
|
59
|
+
"montag": "^2.0.1",
|
|
60
60
|
"ora": "^9.0.0",
|
|
61
61
|
"putout": "^42.0.0",
|
|
62
62
|
"redstd": "^1.0.0",
|
|
63
|
+
"try-catch": "^4.0.9",
|
|
63
64
|
"try-to-catch": "^4.0.0"
|
|
64
65
|
},
|
|
65
66
|
"keywords": [
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
"madrun": "^13.0.0",
|
|
81
82
|
"nodemon": "^3.0.1",
|
|
82
83
|
"superc8": "^12.2.4",
|
|
83
|
-
"supertape": "^
|
|
84
|
+
"supertape": "^13.2.0"
|
|
84
85
|
},
|
|
85
86
|
"license": "MIT",
|
|
86
87
|
"engines": {
|