{"name":"@putout/plugin-strict-mode","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to find and remove console.log calls","homepage":"http://github.com/coderaiser/putout","main":"lib/strict-mode.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage"},"dependencies":{"fullstore":"^1.1.0"},"keywords":["putout","putout-plugin","plugin","strict-mode"],"devDependencies":{"@putout/test":"^1.0.0","coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","eslint-plugin-putout":"^1.2.1","lerna":"^3.8.5","nodemon":"^1.14.12","nyc":"^13.0.1","redrun":"^7.0.2","supertape":"^1.0.3"},"peerDependencies":{"putout":">=4"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-strict-mode@1.0.0","_nodeVersion":"11.10.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-yECkl0sk4RxccpHH1edWLjDYxUtoJuKkz+EcQ7a1r1ylGrx/Bp6W6QPqMimcuQTs5nH6I0qjM+w/VH1RYt+1DQ==","shasum":"d4a4a649c7f7b3d7f69a396f34ca60605b160eea","tarball":"http://registry-npm.ywwl.com/@putout/plugin-strict-mode/download/@putout/plugin-strict-mode-1.0.0.tgz","fileCount":18,"unpackedSize":7099,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcathQCRA9TVsSAnZWagAAGMYP/iTAObFyDDBSnRLwsw1b\nXPZ/VQiZyjEV4PHg6Hp446S1abkOho29hw1SWL3d08i00HVTBR6SJQ/iCMAK\n9FmaN4gOWd6au1rKpGY6AHHtX6YLK7ELj4zMJjjX8WpoDyNmoeUU9SIk+0ui\nMv5MqJWDM8XoHWR3dmPSni1vFc5imjrLAsNXlWJXA//KtP09B16hPfYivIl3\nd0MlHzNmQ+iAj27PUuikjgHTdQjFyAk3ydkcl9t0UQk7usqlLglxLUcMw4f4\nkPEtdLwgDzZo9ZQWHon4gDUHDioJiKxjpf6kDsfo5GstXqfeOmy92a4VMfQC\nea/wmqES1i1s6bq4zaccBDpKlVcpp94rk/Wm8ukqA2mggIfRd+a5eNbvYGUX\n+v7pG2PbqXPhWnvueWPuhvS226VcV/5Yocc+9gZHCbB9UkX0PCmAKcQOmiKw\n0sHQNQhL0zX7dJx7GJiiU95JHWUeeHPxk72y9lnO18gJpQudWGgNk/zAfYsm\nCacQ5Ahdwj6klsTwGhBZLsTYiRE0yBLyWVifzgW/NzwhTTDNpuHr3eaecDlr\nSGhPbmJijg2RHU/x9prBBz2/Pkped11hALQTTR2KdVYMhv1NJw9jB+WJKnnh\nTm+TVbAWVR/+Ock+gzE3oow+Wbf5tmMBPjMSmXv9YzK8K/lorkl0JKMDJQY0\n49db\r\n=IXxW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcFo9Y8JCRQ5uyv566BNulzty4rB6Zj7JiEv5FvRzO8gIgHvyNgKpSSRr00UkFo99i7KeDtRSM7Y1iWdFdZmV7dbQ="}],"size":2979,"noattachment":false,"key":"/@putout/plugin-strict-mode/-/@putout/plugin-strict-mode-1.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-strict-mode_1.0.0_1550506063910_0.3832302585411398"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-strict-mode [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-strict-mode.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-strict-mode \"npm\"\n\n> **Strict mode** makes several changes to normal **JavaScript** semantics:\n>\n> - Eliminates some **JavaScript** silent errors by changing them to throw errors.\n> - Fixes mistakes that make it difficult for **JavaScript** engines to perform optimizations: strict mode code can sometimes be made to run faster than identical code that's not strict mode.\n> - Prohibits some syntax likely to be defined in future versions of **ECMAScript**.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to add **strict mode** to **CommonJS**, and remove from **ESM**, where it enabled by default. Moved to [`@putout/plugin-nodejs`](https://www.npmjs.com/package/@putout/plugin-nodejs).\n\n## Install\n\n```\nnpm i @putout/plugin-strict-mode -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"strict-mode/add-missing\": \"on\",\n        \"strict-mode/remove-useless\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\nESM:\n\n```js\n'strict mode';\n\nimport a from 'b';\n```\n\nCommonJS:\n\n```js\nconst a = require('b');\n```\n\n## ✅ Example of correct code\n\nESM:\n\n```js\nimport a from 'b';\n```\n\nCommonJS:\n\n```js\n'strict mode';\n\nconst a = require('b');\n```\n\n## License\n\nMIT\n","publish_time":1550506064018,"_cnpm_publish_time":1550506064018,"dist-tags":{"latest":"10.0.2"}}