@putout/plugin-putout 27.10.0 → 27.12.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.
|
@@ -24,6 +24,7 @@ export const report = () => `Apply 'fixture' name to 'message'`;
|
|
|
24
24
|
|
|
25
25
|
export const match = () => ({
|
|
26
26
|
't.noReport(__a)': check,
|
|
27
|
+
't.noReport(__a, __b)': check,
|
|
27
28
|
't.noReportAfterTransform(__a)': check,
|
|
28
29
|
't.report(__a, __b)': check,
|
|
29
30
|
't.transform(__a)': check,
|
|
@@ -36,6 +37,7 @@ export const match = () => ({
|
|
|
36
37
|
|
|
37
38
|
export const replace = () => ({
|
|
38
39
|
't.noReport(__a)': transform,
|
|
40
|
+
't.noReport(__a, __b)': transform,
|
|
39
41
|
't.report(__a, __b)': transform,
|
|
40
42
|
't.transform(__a)': transform,
|
|
41
43
|
't.transform(__a, __b)': transform,
|
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
removeAttributeValue: 'const {removeAttributeValue} = operator',
|
|
9
9
|
setAttributeValue: 'const {setAttributeValue} = operator',
|
|
10
10
|
addClassName: 'const {addClassName} = operator',
|
|
11
|
+
addAttribute: 'const {addAttribute} = operator',
|
|
11
12
|
getClassName: 'const {getClassName} = operator',
|
|
12
13
|
removeClassName: 'const {removeClassName} = operator',
|
|
13
14
|
containsClassName: 'const {containsClassName} = operator',
|
|
@@ -59,6 +59,11 @@ export const traverse = ({push}) => ({
|
|
|
59
59
|
incorrect: INCORRECT.NO_REPORT,
|
|
60
60
|
correct: ': no report',
|
|
61
61
|
}),
|
|
62
|
+
't.noReport(__a, __b)': convert({
|
|
63
|
+
push,
|
|
64
|
+
incorrect: INCORRECT.NO_REPORT,
|
|
65
|
+
correct: ': no report',
|
|
66
|
+
}),
|
|
62
67
|
't.noReportAfterTransform(__a)': convert({
|
|
63
68
|
push,
|
|
64
69
|
incorrect: INCORRECT.NO_REPORT_AFTER_TRANSFORM,
|
package/package.json
CHANGED