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 +10 -0
- package/bin/redlint.js +1 -1
- package/lib/lint/lint.js +3 -3
- package/lib/lint/slave.js +1 -1
- package/lib/menu.js +4 -4
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/bin/redlint.js
CHANGED
package/lib/lint/lint.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
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 =
|
|
20
|
+
const places = await transformAsync(ast, source, {
|
|
21
21
|
fix,
|
|
22
22
|
fixCount: 1,
|
|
23
23
|
...options,
|
package/lib/lint/slave.js
CHANGED
package/lib/menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export const SCAN = '
|
|
2
|
-
export const SCAN_DEBUG = '
|
|
3
|
-
export const FIX = '
|
|
4
|
-
export const 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';
|