redlint 5.0.3 → 5.0.5
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 +11 -0
- package/README.md +15 -0
- package/lib/lint/lint.js +1 -1
- package/lib/run.js +1 -1
- package/package.json +4 -4
package/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -56,6 +56,21 @@ 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
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"match": {
|
|
66
|
+
".filesystem": {
|
|
67
|
+
"custom/create-file": "on"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"plugins": ["custom"]
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
59
74
|
## License
|
|
60
75
|
|
|
61
76
|
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.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Lint Filesystem with 🐊Putout",
|
|
@@ -32,7 +32,7 @@
|
|
|
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",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"@putout/operator-json": "^3.1.0",
|
|
41
41
|
"@putout/plugin-eslint": "^15.0.0",
|
|
42
42
|
"@putout/plugin-filesystem": "^12.0.0",
|
|
43
|
-
"@putout/plugin-nodejs": "^
|
|
43
|
+
"@putout/plugin-nodejs": "^19.1.0",
|
|
44
44
|
"@putout/plugin-react": "^3.0.0",
|
|
45
45
|
"@putout/processor-filesystem": "^7.0.1",
|
|
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",
|