@putout/plugin-printer 8.16.0 → 8.16.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/README.md +1 -1
- package/lib/apply-breakline/index.js +5 -1
- package/lib/apply-linebreak/index.js +5 -1
- package/lib/types.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -324,7 +324,7 @@ export const beforeIf = createTypeChecker([
|
|
|
324
324
|
|
|
325
325
|
## remove-useless-path-from-type-checker
|
|
326
326
|
|
|
327
|
-
Selector always starts from `path`, so it can be `parentPath.`, or `node.`, but never `path.`,
|
|
327
|
+
Selector always starts from `path`, so it can be `parentPath.`, or `node.`, but never `path.`, since it is self reference.
|
|
328
328
|
|
|
329
329
|
Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/ef8e1dc1036a4a2fcc99b32c3dc661e2/bc43a082dc9cb5ed8a8afe6964174f0d1be2e1c1).
|
|
330
330
|
|
|
@@ -20,7 +20,11 @@ export const fix = (path) => {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export const filter = (path) => {
|
|
23
|
-
return compareAny(next(path), [
|
|
23
|
+
return compareAny(next(path), [
|
|
24
|
+
'indent()',
|
|
25
|
+
'print.indent()',
|
|
26
|
+
'write.indent()',
|
|
27
|
+
]);
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
export const include = () => [
|
|
@@ -25,7 +25,11 @@ export const include = () => [
|
|
|
25
25
|
];
|
|
26
26
|
|
|
27
27
|
export const filter = (path) => {
|
|
28
|
-
return compareAny(prev(path), [
|
|
28
|
+
return compareAny(prev(path), [
|
|
29
|
+
'indent()',
|
|
30
|
+
'print.indent()',
|
|
31
|
+
'write.indent()',
|
|
32
|
+
]);
|
|
29
33
|
};
|
|
30
34
|
|
|
31
35
|
function choose(path) {
|
package/lib/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-printer",
|
|
3
|
-
"version": "8.16.
|
|
3
|
+
"version": "8.16.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout plugin adds support of transformations for @putout/printer",
|