{"_id":"eslint-plugin-no-empty-blocks","_rev":"301869","name":"eslint-plugin-no-empty-blocks","description":"An extended version of the `no-empty` rule that adds an option to allow empty catch blocks.","dist-tags":{"latest":"0.0.2"},"maintainers":[{"name":"alex-shnayder","email":"alex@shnayder.pro"}],"time":{"modified":"2021-06-03T19:12:22.000Z","created":"2015-06-07T04:51:53.344Z","0.0.2":"2015-06-07T05:18:56.067Z","0.0.1":"2015-06-07T04:51:53.344Z"},"users":{},"author":{"name":"Alex Shnayder","email":"alex@shnayder.pro"},"repository":{"type":"git","url":"git://github.com/alex-shnayder/eslint-plugin-no-empty-blocks.git"},"versions":{"0.0.2":{"name":"eslint-plugin-no-empty-blocks","version":"0.0.2","description":"An extended version of the `no-empty` rule that adds an option to allow empty catch blocks.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/lib/rules/"},"repository":{"type":"git","url":"git://github.com/alex-shnayder/eslint-plugin-no-empty-blocks.git"},"keywords":["eslint","eslintplugin","no-empty","catch"],"author":{"name":"Alex Shnayder","email":"alex@shnayder.pro"},"license":"MIT","peerDependencies":{"eslint":">=0.8.0"},"devDependencies":{"eslint":"^0.22.0","eslint-tester":"^0.7.0","mocha":"^2.2.5"},"gitHead":"bf53dccd32a510421bf5102a81194fe85a451775","bugs":{"url":"https://github.com/alex-shnayder/eslint-plugin-no-empty-blocks/issues"},"homepage":"https://github.com/alex-shnayder/eslint-plugin-no-empty-blocks#readme","_id":"eslint-plugin-no-empty-blocks@0.0.2","_shasum":"cdf7a1fbd10508387b7e6a36ee4c9b9b23b109b9","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.10.36","_npmUser":{"name":"alex-shnayder","email":"alex@shnayder.pro"},"dist":{"shasum":"cdf7a1fbd10508387b7e6a36ee4c9b9b23b109b9","size":2190,"noattachment":false,"key":"/eslint-plugin-no-empty-blocks/-/eslint-plugin-no-empty-blocks-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-no-empty-blocks/download/eslint-plugin-no-empty-blocks-0.0.2.tgz"},"maintainers":[{"name":"alex-shnayder","email":"alex@shnayder.pro"}],"publish_time":1433654336067,"_cnpm_publish_time":1433654336067,"_hasShrinkwrap":false,"deprecated":"ESLint's native no-empty rule already supports the allowEmptyCatch option."},"0.0.1":{"name":"eslint-plugin-no-empty-blocks","version":"0.0.1","description":"An extended version of the `no-empty` rule that adds an option to allow empty catch blocks.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/lib/rules/"},"repository":{"type":"git","url":"git://github.com/alex-shnayder/eslint-plugin-no-empty-blocks.git"},"keywords":["eslint","eslintplugin","no-empty","catch"],"author":{"name":"Alex Shnayder","email":"alex@shnayder.pro"},"license":"MIT","peerDependencies":{"eslint":">=0.8.0"},"devDependencies":{"eslint":"^0.22.0","eslint-tester":"^0.7.0","mocha":"^2.2.5"},"gitHead":"4bfc9d405d930b3ed41946d4a0435eb68b1dea02","bugs":{"url":"https://github.com/alex-shnayder/eslint-plugin-no-empty-blocks/issues"},"homepage":"https://github.com/alex-shnayder/eslint-plugin-no-empty-blocks#readme","_id":"eslint-plugin-no-empty-blocks@0.0.1","_shasum":"f74290119020b15bc872434cb883cb581bf5558f","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.10.36","_npmUser":{"name":"alex-shnayder","email":"alex@shnayder.pro"},"dist":{"shasum":"f74290119020b15bc872434cb883cb581bf5558f","size":2276,"noattachment":false,"key":"/eslint-plugin-no-empty-blocks/-/eslint-plugin-no-empty-blocks-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-no-empty-blocks/download/eslint-plugin-no-empty-blocks-0.0.1.tgz"},"maintainers":[{"name":"alex-shnayder","email":"alex@shnayder.pro"}],"publish_time":1433652713344,"_cnpm_publish_time":1433652713344,"_hasShrinkwrap":false,"deprecated":"ESLint's native no-empty rule already supports the allowEmptyCatch option."}},"readme":"# eslint-plugin-no-empty-blocks\n\nAn [ESLint](http://eslint.org/) rule for eliminating empty block statements. It is an extended version of the [`no-empty`](http://eslint.org/docs/rules/no-empty) rule that allows empty catch blocks.\n\n## Why Use It\n\nESLint has the built-in `no-empty` rule that is aimed at eliminating empty block statements. It throws a warning at empty catch blocks such as this one:\n\n```javascript\ntry {\n  doSomething();\n} catch(e) {}\n```\n\nBut this technique can be useful for ignoring errors, and this plugin provides an option to allow it.\n\n## Usage\n\nAdd `no-empty-blocks` to the `plugins` section of your `.eslintrc`:\n\n```json\n{\n  \"plugins\": [\n    \"no-empty-blocks\"\n  ]\n}\n```\n\nTurn off the `no-empty` rule:\n\n```json\n{\n  \"rules\": {\n    \"no-empty\": 0\n  }\n}\n```\n","_attachments":{},"homepage":"https://github.com/alex-shnayder/eslint-plugin-no-empty-blocks#readme","bugs":{"url":"https://github.com/alex-shnayder/eslint-plugin-no-empty-blocks/issues"},"license":"MIT"}