{"name":"@putout/plugin-strict-mode","version":"2.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":{},"keywords":["putout","putout-plugin","plugin","strict-mode"],"devDependencies":{"@putout/test":"^2.0.0","coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^5.0.1","lerna":"^3.8.5","madrun":"^7.0.0","nodemon":"^2.0.1","nyc":"^15.0.1","supertape":"^2.0.0"},"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.0.0","_nodeVersion":"14.13.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-+e3EgiqUCDN5N4yU698hGjd5HMTRuOCf74GeBytreU2D1zlBdr2fc9skJWXQlr4hHIk2mdKDnAlzMmgNdp5aZQ==","shasum":"7502a303b96cd3ccf1b15ccc581d79fd3f3815d6","tarball":"http://registry-npm.ywwl.com/@putout/plugin-strict-mode/download/@putout/plugin-strict-mode-2.0.0.tgz","fileCount":6,"unpackedSize":5329,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffY5LCRA9TVsSAnZWagAA79wP/i86v5HBp+nJSVBdrE7S\nescgm19uiFs+kHemPuJu1EWaVHb+PfOzVuDUm0AsbW6quQdozXPV/RKhJI/L\nAUKEzL47Er+j2uG++/DiEcU0TcCGOt5c403GJcaRqi18LFzdXCikL2ZGyj7u\n3aHriTko5Bj5YrNqjPNvuN+EuJIGB1EDJZCwEGqlxSNUyTl2XrChlgDgFZzz\nvCIeGkc0Q8vC1hpEGseYNO60MVtHZ7v8bNynYjVjQU/8qKEheZX3f5GNoq76\nfWmUxSnCQ4sDjCHmA3PVFGaAImM80QISPDSS8c+4GjAspuF2vAuMJNgcx7+2\nOUCx76uRrGKMxoWFI+24m06NQeA+GmSaUDDEJ+iy5dvaz7hsH0LQecsAJm/0\n2L+42o43j4VlmHAg1CquErOhPDQmXteosN2vAxGebtHqLC2MPPjjEuW2smXs\nZGcBOVTbRvebQQjfYMhw4xdEVsSDyfXHOo3U6CmYDGhn+jHKe+K9Bl268Ebp\nqJy6oZkwBfuLr+cQVj/nGbjAKAF/pFt8WD4V/6tCjTA8iK4Qrkt4Fd5B29Wh\nFPC3yrfkeK0JCuPmiTzSKRThtMqaVKfRkk0n9txXtci4o0+4PQgUfDBjgdQW\no1aDknMZXrLn1i9ashqMGY+6wrbIoD1AUDtsSCtHD/mbEQATxljyutDQ0CGq\nXYZu\r\n=NDqi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvwM5FizsGTNIMkZ1NiNvYki0wWCgaDXjglhmL5LI/JAiBqaB2H7+OkNwUc11aoVG3mnKIdJt5H4WviYz3dL9b76A=="}],"size":2268,"noattachment":false,"key":"/@putout/plugin-strict-mode/-/@putout/plugin-strict-mode-2.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_2.0.0_1602063947340_0.5744192258669596"},"_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":1602063947459,"_cnpm_publish_time":1602063947459,"dist-tags":{"latest":"10.0.2"}}