redlint 3.5.1 β†’ 3.6.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 CHANGED
@@ -1,3 +1,13 @@
1
+ 2023.12.26, v3.6.1
2
+
3
+ fix:
4
+ - dd6b154 redlint: scan πŸ”
5
+
6
+ 2023.12.26, v3.6.0
7
+
8
+ feature:
9
+ - 3adb918 redlint: add support of async rules
10
+
1
11
  2023.12.22, v3.5.1
2
12
 
3
13
  fix:
package/bin/redlint.js CHANGED
@@ -165,7 +165,7 @@ async function uiLoop(arg) {
165
165
  }
166
166
 
167
167
  if (isScanDebug(arg)) {
168
- const places = lint(filesystem, {
168
+ const places = await lint(filesystem, {
169
169
  fix: false,
170
170
  });
171
171
 
package/lib/lint/lint.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {
2
- transform,
2
+ transformAsync,
3
3
  parse,
4
4
  } from 'putout';
5
5
  import parseOptions from 'putout/parse-options';
@@ -9,7 +9,7 @@ import {
9
9
  merge,
10
10
  } from '@putout/processor-filesystem';
11
11
 
12
- export const lint = (filesystem, {fix, progress = createProgress()} = {}) => {
12
+ export const lint = async (filesystem, {fix, progress = createProgress()} = {}) => {
13
13
  const [{source}] = branch(filesystem);
14
14
  const options = parseOptions({
15
15
  name: '.filesystem.json',
@@ -17,7 +17,7 @@ export const lint = (filesystem, {fix, progress = createProgress()} = {}) => {
17
17
 
18
18
  const ast = parse(source);
19
19
 
20
- const places = transform(ast, source, {
20
+ const places = await transformAsync(ast, source, {
21
21
  fix,
22
22
  fixCount: 1,
23
23
  ...options,
package/lib/lint/slave.js CHANGED
@@ -28,7 +28,7 @@ progress.on('file', ({rule, i, n}) => {
28
28
  }]);
29
29
  });
30
30
 
31
- parentPort.postMessage(['end', lint(filesystem, {
31
+ parentPort.postMessage(['end', await lint(filesystem, {
32
32
  fix,
33
33
  progress,
34
34
  })]);
package/lib/menu.js CHANGED
@@ -1,7 +1,7 @@
1
- export const SCAN = 'βœ… scan';
2
- export const SCAN_DEBUG = 'βœ… scan: debug';
3
- export const FIX = '❌ fix';
4
- export const FIX_DEBUG = '❌ fix: debug';
1
+ export const SCAN = 'πŸ” scan';
2
+ export const SCAN_DEBUG = 'πŸ” scan: debug';
3
+ export const FIX = 'πŸ”¨ fix';
4
+ export const FIX_DEBUG = 'πŸ”¨ fix: debug';
5
5
  export const PACK = 'πŸ”¬ pack';
6
6
  export const PACK_DEBUG = 'πŸ”¬ pack';
7
7
  export const EXTRACT = 'πŸ”­ extract';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redlint",
3
- "version": "3.5.1",
3
+ "version": "3.6.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Lint Filesystem with 🐊Putout",