@putout/plugin-return 1.1.0 → 1.1.2
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/lib/index.js +2 -0
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -4,6 +4,7 @@ const applyEarly = require('./apply-early');
|
|
|
4
4
|
const convertFromContinue = require('./convert-from-continue');
|
|
5
5
|
const convertFromBreak = require('./convert-from-break');
|
|
6
6
|
const mergeWithNextSibling = require('./merge-with-next-sibling');
|
|
7
|
+
const removeUseless = require('./remove-useless');
|
|
7
8
|
const simplifyBoolean = require('./simplify-boolean');
|
|
8
9
|
|
|
9
10
|
module.exports.rules = {
|
|
@@ -12,4 +13,5 @@ module.exports.rules = {
|
|
|
12
13
|
'convert-from-break': convertFromBreak,
|
|
13
14
|
'merge-with-next-sibling': mergeWithNextSibling,
|
|
14
15
|
'simplify-boolean': simplifyBoolean,
|
|
16
|
+
'remove-useless': removeUseless,
|
|
15
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-return",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout plugin adds ability to transform code related to return",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"c8": "^10.0.0",
|
|
42
42
|
"eslint": "^9.0.0",
|
|
43
43
|
"eslint-plugin-n": "^17.0.0",
|
|
44
|
-
"eslint-plugin-putout": "^
|
|
44
|
+
"eslint-plugin-putout": "^24.0.0",
|
|
45
45
|
"lerna": "^6.0.1",
|
|
46
46
|
"madrun": "^10.0.0",
|
|
47
47
|
"montag": "^1.2.1",
|
|
48
48
|
"nodemon": "^3.0.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"putout": ">=
|
|
51
|
+
"putout": ">=38"
|
|
52
52
|
},
|
|
53
53
|
"license": "MIT",
|
|
54
54
|
"engines": {
|