redlint 5.0.2 → 5.0.4
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 +13 -0
- package/README.md +17 -0
- package/lib/lint/lint.js +1 -1
- package/lib/run.js +1 -1
- package/package.json +5 -6
package/ChangeLog
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
2026.01.11, v5.0.4
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 63d38bf redlint: fullstore v4.0.0
|
|
5
|
+
- 4fab77b redlint: @putout/cli-filesystem v3.0.0
|
|
6
|
+
|
|
7
|
+
2026.01.09, v5.0.3
|
|
8
|
+
|
|
9
|
+
feature:
|
|
10
|
+
- 6ad73f9 redlint: supertape v12.0.7
|
|
11
|
+
- 8a1ebda redlint: estree-to-babel: remove unused
|
|
12
|
+
- 614bec6 redlint: @putout/operator-json v3.1.0
|
|
13
|
+
|
|
1
14
|
2026.01.03, v5.0.2
|
|
2
15
|
|
|
3
16
|
feature:
|
package/README.md
CHANGED
|
@@ -56,6 +56,23 @@ To fix your files use `redlint fix`:
|
|
|
56
56
|
|
|
57
57
|
You can also generate `.filesystem.json` file with `putout generate`.
|
|
58
58
|
|
|
59
|
+
## How to add a new rule?
|
|
60
|
+
|
|
61
|
+
To add new rule `create-file` located in plugin `custom` for **RedLint** write a new 🐊**Putout** rule [Scanner](https://github.com/coderaiser/putout/tree/master/packages/engine-runner#scanner). And add it to `.putout.json`:
|
|
62
|
+
|
|
63
|
+
```js
|
|
64
|
+
{
|
|
65
|
+
"match": {
|
|
66
|
+
".filesystem": {
|
|
67
|
+
"custom/create-file": "on"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
"plugins": [
|
|
71
|
+
"custom"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
59
76
|
## License
|
|
60
77
|
|
|
61
78
|
MIT
|
package/lib/lint/lint.js
CHANGED
|
@@ -3,7 +3,7 @@ import {parseOptions} from 'putout/parse-options';
|
|
|
3
3
|
import {createProgress} from '@putout/engine-runner/progress';
|
|
4
4
|
import {deinit, init} from '@putout/operator-filesystem';
|
|
5
5
|
import {toJS, __filesystem} from '@putout/operator-json';
|
|
6
|
-
import filesystemCLI from '@putout/cli-filesystem';
|
|
6
|
+
import * as filesystemCLI from '@putout/cli-filesystem';
|
|
7
7
|
|
|
8
8
|
export const lint = async (filesystem, overrides = {}) => {
|
|
9
9
|
const {
|
package/lib/run.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redlint",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Lint Filesystem with 🐊Putout",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@putout/bundler": "^4.0.0",
|
|
34
34
|
"@putout/cli-choose": "^3.0.0",
|
|
35
|
-
"@putout/cli-filesystem": "^
|
|
35
|
+
"@putout/cli-filesystem": "^3.0.0",
|
|
36
36
|
"@putout/engine-runner": "^27.0.0",
|
|
37
37
|
"@putout/formatter-codeframe": "^10.0.0",
|
|
38
38
|
"@putout/formatter-dump": "^6.1.0",
|
|
39
39
|
"@putout/operator-filesystem": "^10.0.0",
|
|
40
|
-
"@putout/operator-json": "^
|
|
40
|
+
"@putout/operator-json": "^3.1.0",
|
|
41
41
|
"@putout/plugin-eslint": "^15.0.0",
|
|
42
42
|
"@putout/plugin-filesystem": "^12.0.0",
|
|
43
43
|
"@putout/plugin-nodejs": "^18.1.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"chalk": "^5.3.0",
|
|
47
47
|
"ci-info": "^4.0.0",
|
|
48
48
|
"enquirer": "^2.4.1",
|
|
49
|
-
"fullstore": "^
|
|
49
|
+
"fullstore": "^4.0.0",
|
|
50
50
|
"ignore": "^7.0.0",
|
|
51
51
|
"obligator": "^3.0.0",
|
|
52
52
|
"ora": "^9.0.0",
|
|
@@ -69,12 +69,11 @@
|
|
|
69
69
|
"c8": "^10.1.2",
|
|
70
70
|
"eslint": "^9.0.0",
|
|
71
71
|
"eslint-plugin-putout": "^29.0.2",
|
|
72
|
-
"estree-to-babel": "^11.0.2",
|
|
73
72
|
"just-kebab-case": "^4.2.0",
|
|
74
73
|
"madrun": "^12.0.0",
|
|
75
74
|
"montag": "^1.0.0",
|
|
76
75
|
"nodemon": "^3.0.1",
|
|
77
|
-
"supertape": "^
|
|
76
|
+
"supertape": "^12.0.7"
|
|
78
77
|
},
|
|
79
78
|
"license": "MIT",
|
|
80
79
|
"engines": {
|