@putout/plugin-remove-nested-blocks
Advanced tools
Comparing version 5.0.1 to 6.0.0
@@ -7,2 +7,3 @@ 'use strict'; | ||
const isIntersect = (bindingsA, path) => { | ||
path.scope.crawl(); | ||
const keysA = keys(bindingsA); | ||
@@ -9,0 +10,0 @@ |
{ | ||
"name": "@putout/plugin-remove-nested-blocks", | ||
"version": "5.0.1", | ||
"version": "6.0.0", | ||
"type": "commonjs", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
"description": "putout plugin adds ability to find and remove nested blocks", | ||
"description": "🐊Putout plugin adds ability to find and remove nested blocks", | ||
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-nested-blocks#readme", | ||
@@ -36,18 +36,19 @@ "main": "lib/remove-nested-blocks.js", | ||
"devDependencies": { | ||
"@putout/plugin-convert-reduce-to-for-of": "*", | ||
"@putout/plugin-tape": "*", | ||
"@putout/test": "^4.0.0", | ||
"@putout/test": "^5.0.0", | ||
"c8": "^7.5.0", | ||
"eslint": "^8.0.1", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-putout": "^13.0.0", | ||
"eslint-plugin-putout": "^15.0.0", | ||
"lerna": "^4.0.0", | ||
"madrun": "^8.0.1", | ||
"madrun": "^9.0.0", | ||
"nodemon": "^2.0.1" | ||
}, | ||
"peerDependencies": { | ||
"putout": ">=24" | ||
"putout": ">=25" | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=16" | ||
}, | ||
@@ -54,0 +55,0 @@ "publishConfig": { |
# @putout/plugin-remove-nested-blocks [![NPM version][NPMIMGURL]][NPMURL] | ||
[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-nested-blocks.svg?style=flat&longCache=true | ||
[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-nested-blocks"npm" | ||
[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-nested-blocks "npm" | ||
🐊[`Putout`](https://github.com/coderaiser/putout) plugin adds ability to find and remove `nested bocks`. | ||
> Delimited by a pair of curly brackets **block statement** is used to group zero or more statements. | ||
> | ||
> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/block) | ||
🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and remove **nested bocks**. | ||
☝️*Remember, when you [writing a transform](https://github.com/coderaiser/putout/tree/master/packages/engine-runner#readme) you can skip all parts related to **removing nested blocks** and just reuse current **plugin** it will make your code simpler and less error prone.* | ||
## Install | ||
@@ -50,4 +56,11 @@ | ||
## Comparison | ||
Linter | Rule | Fix | ||
--------|-------|------------| | ||
🐊 **Putout**| [`remove-nested-blocks`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-nested-blocks#readme)| ✅ | ||
🦕 **ESLint** | [`no-lone-blocks`](https://eslint.org/docs/rules/no-lone-blocks) | ❌ | ||
## License | ||
MIT |
5156
31
66
10