{"name":"@putout/plugin-strict-mode","version":"2.1.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","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","strict-mode"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=10"},"license":"MIT","engines":{"node":">=12"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-strict-mode@2.1.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-bGTajLdyZVyHArHUGEzB/VlsFhLK1kjGsmIwtybQsAkUFqoWxg2vEzbyDl4nFzv1wuD9TZc8jaW97sgo8eFx+g==","shasum":"c041f097387beeb0cf7f5cc6825e39b7e0ea8d93","tarball":"http://registry-npm.ywwl.com/@putout/plugin-strict-mode/download/@putout/plugin-strict-mode-2.1.0.tgz","fileCount":6,"unpackedSize":5432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgR5NwCRA9TVsSAnZWagAAlzQP/2zrKbjN+TBVW2Kzd44b\n4ndxUAwo6bRX2StOABxw4uxP7h6IPYNgren3+yUV9pt4hZ1Gxj3sqT/fMczr\nf6CPkJ0H1M7TG0o7vYs20QPobacKgbcFfbHFZxWHJT2cNAEQo8zM6aNAtXDc\nBkiiuSVXQPW/xOV9fBOb9s1NauJDODh4uRliWArwOAMNSiCUdHGGuxMj4cqv\nbCqVwp23uHYOYCUfIVJmhNlfSZbU/nU5Ucvfsn4Z3jGIa3vUEPwEOYac+5FP\nakjwVmuzS/blUiEDCLDmuImICsXF8torgbrPXPP9OH+3M6kRk9mqIlPzsWMN\nEw1drObIBrrqyloudb99iG/Z33X3iQi7EEsxRWFyG4vToFyglfjC7D5lN3lQ\nAUma9WwmzhUQfWWt1yiBuH1LphJMhQEppf4PZ8wrR4cBkIAVa8pi+Gey211K\n/0R8up16RW50wEspRQk5rANwEBIqYbbwSFB3rOCKTPQ/q5/+H8UWTX7xK2zN\nEcPYk44DcXR4Hh6COH5neWuErgxO7fEAuUwUXXm+KvckLjOfQC3aZtIh+fOz\ni7Cz7zFasyIyimKkjq0xbJ4RxxrDxAhVf7AwxmoIfX4qpRF7SbO7PvgtFwYz\nBRarc5jGp7xOOyUUtpgmsAloFM25qTzX5wiweuL15HowiG52McGgo9Upev5u\nHH29\r\n=24CD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmh5xAdx+y4gJrc9gOVVIRXT0PCmMk+Jmk5FFZ0kWeFAiBJKkSobWykX0BEU71GW+IU/lTHa+u/Hw1GLVbjcDedAQ=="}],"size":2290,"noattachment":false,"key":"/@putout/plugin-strict-mode/-/@putout/plugin-strict-mode-2.1.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-strict-mode_2.1.0_1615303535748_0.2654162984150472"},"_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":1615303535936,"_cnpm_publish_time":1615303535936,"dist-tags":{"latest":"10.0.2"}}