@putout/plugin-putout 29.8.0 → 29.9.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.
|
@@ -25,7 +25,10 @@ export const traverse = ({push, options}) => ({
|
|
|
25
25
|
const {
|
|
26
26
|
peerDependenciesPath,
|
|
27
27
|
enginesPath,
|
|
28
|
-
} = getProperties(__aPath, [
|
|
28
|
+
} = getProperties(__aPath, [
|
|
29
|
+
'peerDependencies',
|
|
30
|
+
'engines',
|
|
31
|
+
]);
|
|
29
32
|
|
|
30
33
|
if (!peerDependenciesPath || !enginesPath)
|
|
31
34
|
return;
|
|
@@ -11,7 +11,7 @@ const {
|
|
|
11
11
|
isArrayPattern,
|
|
12
12
|
} = types;
|
|
13
13
|
|
|
14
|
-
export const report = () => '
|
|
14
|
+
export const report = () => `Use 'path' instead of 'node' in 'getTemplateValues()'`;
|
|
15
15
|
|
|
16
16
|
const GET_TEMPLATE_VALUES_NODE = 'getTemplateValues(__a.node, __b)';
|
|
17
17
|
|
|
@@ -61,7 +61,7 @@ export const traverse = ({push}) => ({
|
|
|
61
61
|
|
|
62
62
|
const {init} = bindingNode;
|
|
63
63
|
|
|
64
|
-
if (compare(init, '__a.
|
|
64
|
+
if (compare(init, '__a.__b()'))
|
|
65
65
|
return false;
|
|
66
66
|
|
|
67
67
|
push({
|
|
@@ -8,7 +8,9 @@ export const match = () => ({
|
|
|
8
8
|
'module.exports.traverse = (__args) => __a': ({__args}, path) => {
|
|
9
9
|
const program = path.scope.getProgramParent().path;
|
|
10
10
|
|
|
11
|
-
const withFix = contains(program, [
|
|
11
|
+
const withFix = contains(program, [
|
|
12
|
+
'module.exports.fix = __a',
|
|
13
|
+
]);
|
|
12
14
|
|
|
13
15
|
if (withFix)
|
|
14
16
|
return false;
|
package/package.json
CHANGED