redlint 5.0.3 → 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 CHANGED
@@ -1,3 +1,9 @@
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
+
1
7
  2026.01.09, v5.0.3
2
8
 
3
9
  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
@@ -1,5 +1,5 @@
1
1
  import {Worker} from 'node:worker_threads';
2
- import fullstore from 'fullstore';
2
+ import {fullstore} from 'fullstore';
3
3
 
4
4
  export function run({test, workerData, slave, push, fix, start, end, fail, success, suffix}) {
5
5
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redlint",
3
- "version": "5.0.3",
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,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": "^2.0.1",
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",
@@ -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": "^3.0.0",
49
+ "fullstore": "^4.0.0",
50
50
  "ignore": "^7.0.0",
51
51
  "obligator": "^3.0.0",
52
52
  "ora": "^9.0.0",