@putout/plugin-putout 25.5.0 β†’ 25.7.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.
package/README.md CHANGED
@@ -165,7 +165,7 @@ Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/fe78f6e489
165
165
  ### ❌ Example of incorrect code
166
166
 
167
167
  ```js
168
- path.node = Identifier('x');
168
+ path.node = identifier('x');
169
169
  ```
170
170
 
171
171
  ### βœ… Example of correct code
@@ -789,7 +789,7 @@ test('plugin-apply-destructuring: transform: array: destructuring', (t) => {
789
789
 
790
790
  ```js
791
791
  module.exports.fix = (path) => {
792
- path.replaceWith(Identifier('hello'));
792
+ path.replaceWith(identifier('hello'));
793
793
  };
794
794
  ```
795
795
 
@@ -799,7 +799,7 @@ module.exports.fix = (path) => {
799
799
  const {replaceWith} = require('putout').operator;
800
800
 
801
801
  module.exports.fix = (path) => {
802
- replaceWith(path, Identifier('hello'));
802
+ replaceWith(path, identifier('hello'));
803
803
  };
804
804
  ```
805
805
 
@@ -810,7 +810,7 @@ module.exports.fix = (path) => {
810
810
  ```js
811
811
  module.exports.fix = (path) => {
812
812
  path.replaceWithMultiple([
813
- Identifier('hello'),
813
+ identifier('hello'),
814
814
  ]);
815
815
  };
816
816
  ```
@@ -822,7 +822,7 @@ const {replaceWithMultiple} = require('putout').operator;
822
822
 
823
823
  module.exports.fix = (path) => {
824
824
  replaceWithMultiple(path, [
825
- Identifier('hello'),
825
+ identifier('hello'),
826
826
  ]);
827
827
  };
828
828
  ```
@@ -61,6 +61,9 @@ export const traverse = ({push}) => ({
61
61
 
62
62
  const {init} = bindingNode;
63
63
 
64
+ if (compare(init, '__a.getPrevSibling()'))
65
+ return false;
66
+
64
67
  push({
65
68
  init,
66
69
  path,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout",
3
- "version": "25.5.0",
3
+ "version": "25.7.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps with plugins development",
@@ -50,7 +50,7 @@
50
50
  "chalk": "^5.3.0",
51
51
  "eslint": "^9.0.0",
52
52
  "eslint-plugin-n": "^17.0.0",
53
- "eslint-plugin-putout": "^26.0.0",
53
+ "eslint-plugin-putout": "^27.0.0",
54
54
  "madrun": "^11.0.0",
55
55
  "montag": "^1.2.1",
56
56
  "nodemon": "^3.0.1",