@putout/plugin-putout 23.4.0 β†’ 23.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.
package/README.md CHANGED
@@ -322,7 +322,7 @@ export const fix = (path) => {
322
322
 
323
323
  ## apply-vars
324
324
 
325
- Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/f96aaef6c54049ca91497a17f7a4b88a/b960916e73a7f51c1c0425ad9a3f304452c0d159).
325
+ Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/6b1a4b5dc75f2591faf580774d23b38f/7278945371ceb76942494f7caf88375d2eaca869).
326
326
 
327
327
  ### ❌ Example of incorrect code
328
328
 
@@ -1,6 +1,13 @@
1
1
  'use strict';
2
2
 
3
- const check = ({__a}) => __a.body.length > 0;
3
+ const {operator} = require('putout');
4
+ const {compare} = operator;
5
+ const check = ({__a}) => {
6
+ if (__a.body)
7
+ return __a.body.length > 0;
8
+
9
+ return compare(__a, 'path.__()');
10
+ };
4
11
 
5
12
  module.exports.report = () => `Add 'path' argument to 'fix'`;
6
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout",
3
- "version": "23.4.0",
3
+ "version": "23.5.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps with plugins development",
@@ -42,6 +42,7 @@
42
42
  "plugin"
43
43
  ],
44
44
  "devDependencies": {
45
+ "@putout/eslint-flat": "^2.0.0",
45
46
  "@putout/plugin-nodejs": "*",
46
47
  "@putout/plugin-tape": "*",
47
48
  "@putout/test": "^11.0.0",
@@ -50,7 +51,6 @@
50
51
  "eslint": "^9.0.0",
51
52
  "eslint-plugin-n": "^17.0.0",
52
53
  "eslint-plugin-putout": "^24.0.0",
53
- "lerna": "^6.0.1",
54
54
  "madrun": "^10.0.0",
55
55
  "montag": "^1.2.1",
56
56
  "nodemon": "^3.0.1",