{"name":"@putout/plugin-strict-mode","version":"1.2.5","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":"^3.0.0"},"keywords":["putout","putout-plugin","plugin","strict-mode"],"devDependencies":{"@putout/test":"^1.0.0","coveralls":"^3.0.0","eslint":"^6.2.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^3.0.0","lerna":"^3.8.5","madrun":"^5.0.0","nodemon":"^2.0.1","nyc":"^14.0.0","redrun":"^7.0.2","supertape":"^1.0.3"},"peerDependencies":{"putout":">=4.31"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-strict-mode@1.2.5","_nodeVersion":"13.11.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-THAMC9Cx71/w3uaAFDyaBrEAUmfqgS9J9hHpgH3gEigg0EnTejciKhsJHj5wZ2gcovW+/fNIvsAkhnSfZRq++Q==","shasum":"37a23e8887fdbb172e2223baf648e58bb43a34a5","tarball":"http://registry-npm.ywwl.com/@putout/plugin-strict-mode/download/@putout/plugin-strict-mode-1.2.5.tgz","fileCount":6,"unpackedSize":5593,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee3WdCRA9TVsSAnZWagAAw7kQAIAm/xAapbaSsX3vFclB\nvVCFa98kHtq0Tb+41qxf5nX7jTcjAAyQj1AbIn42ZDQgZLtzZC7NhyL8EkOM\nXv1FLsYiwaeqsoVs7F2nsdWM/OOrv5q1zBLFfbFgpZ8J+1x4h2jPmJLWCC/B\nYSeUwAJ3/afRHrpMFlxgZFz05iD/A4f8dOSYCUBsgVWsQUDVMZ7A1eaSdGch\nNKlT3AtQg5lL1HPvec1k1LKJeax0AoTz2Nn00I584EfiUdj0Bp9HwLvaqabV\nJKkA0gpho5fd9B0M9bfoSeQJnTjpY4xdMmCbhm1mZnyDJVYs0ig1/Kp3nOgr\nxaMceYXwb/VhVx2Q2WZw0Nbhu0TILkpPJjupaiHMNfo1PFxe9jVjwHPozr9/\nK/VdiUN6Ig82TL9sGvGUSqDeL8J37fbMGf8Qz/MRtTRTMvw4V0VbRxeBQ5El\nfocJRy7Np6oJfAM8DebzRi+DM3s0vAlu8aQHkcGTJVIYKsfCWinlXBigLxXW\nS77JXqZMnUNQ514N3vaiLllihTOvwbyOEoc4VCORgerVpJR+SHaelIn7GWsm\nYRVnadj8sJKCaM8p53tZy8ldkZX5FYyQ41so7IWGJed4fIiAyRycLKsC5j5T\n7GeFK1sN9AqnXwi8X0vkvrBlosYfec9lD/ANxVK4o1u4mly+pDnAqgDTtzJ0\nupkW\r\n=6NOH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQD9ZsB+sxY3OYbG4wh2628/EG9zpv7NdiTzrdBXe41NOwIfLJQRU0bTXvl3eIarkeQ0KaEjyIrBt9vis5WDaqlNaw=="}],"size":2391,"noattachment":false,"key":"/@putout/plugin-strict-mode/-/@putout/plugin-strict-mode-1.2.5.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.2.5_1585149340442_0.5821755807951683"},"_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":1585149340670,"_cnpm_publish_time":1585149340670,"dist-tags":{"latest":"10.0.2"}}