@putout/plugin-putout 26.4.0 → 26.5.0
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.
|
@@ -12,6 +12,7 @@ const FIXTURE = [
|
|
|
12
12
|
|
|
13
13
|
const NAMES = [
|
|
14
14
|
...FIXTURE,
|
|
15
|
+
'transform with options',
|
|
15
16
|
'no report',
|
|
16
17
|
'no transform',
|
|
17
18
|
'no report after transform',
|
|
@@ -26,6 +27,7 @@ export const match = () => ({
|
|
|
26
27
|
't.report(__a, __b)': check,
|
|
27
28
|
't.transform(__a)': check,
|
|
28
29
|
't.transform(__a, __b)': check,
|
|
30
|
+
't.transformWithOptions(__a, __b)': check,
|
|
29
31
|
't.noTransform(__a)': check,
|
|
30
32
|
't.noReportWithOptions(__a, __b)': check,
|
|
31
33
|
});
|
|
@@ -35,6 +37,7 @@ export const replace = () => ({
|
|
|
35
37
|
't.report(__a, __b)': transform,
|
|
36
38
|
't.transform(__a)': transform,
|
|
37
39
|
't.transform(__a, __b)': transform,
|
|
40
|
+
't.transformWithOptions(__a, __b)': transform,
|
|
38
41
|
't.noTransform(__a)': transform,
|
|
39
42
|
't.noReportAfterTransform(__a)': transform,
|
|
40
43
|
't.noReportWithOptions(__a, __b)': transform,
|
|
@@ -14,6 +14,7 @@ export const fix = ({path, incorrect, correct}) => {
|
|
|
14
14
|
|
|
15
15
|
const INCORRECT = {
|
|
16
16
|
TRANSFORM: /: (no report after transform|no transform|report|no report)/,
|
|
17
|
+
TRANSFORM_WITH_OPTIONS: /: (no report after transform|transform|no transform|report|no report)/,
|
|
17
18
|
NO_TRANSFORM: /: (no report after transform|transform|report|no report)/,
|
|
18
19
|
REPORT: /: (no report after transform|no report|transform|no transform)/,
|
|
19
20
|
NO_REPORT: /: (no report after transform|report|transform|no transform)/,
|
|
@@ -32,6 +33,11 @@ export const traverse = ({push}) => ({
|
|
|
32
33
|
incorrect: INCORRECT.TRANSFORM,
|
|
33
34
|
correct: ': transform',
|
|
34
35
|
}),
|
|
36
|
+
't.transformWithOptions(__a, __b)': convert({
|
|
37
|
+
push,
|
|
38
|
+
incorrect: INCORRECT.TRANSFORM_WITH_OPTIONS,
|
|
39
|
+
correct: ': transform with options',
|
|
40
|
+
}),
|
|
35
41
|
't.noTransform(__a)': convert({
|
|
36
42
|
push,
|
|
37
43
|
incorrect: INCORRECT.NO_TRANSFORM,
|
package/package.json
CHANGED