@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 +1 -1
- package/lib/add-path-arg-to-fix/index.js +8 -1
- package/package.json +2 -2
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/
|
|
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
|
|
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.
|
|
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",
|