{"name":"@putout/plugin-strict-mode","version":"4.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to add or remove strict mode directive","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-strict-mode#readme","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/plugin-typescript":"*","@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^14.0.0","lerna":"^4.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"a130f064aa4bb55e5c4603d8167f64df40d66ddd","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-strict-mode@4.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-BlTyozuF4cOEZ5lv3o6+qiEBfiIXazXFaRjBAmh93IdgmetL0MNlHpPcSyqqsRKu6U4O5VDo+FY9qMDoyl0Oeg==","shasum":"d645deb4ec7067aed6122d8dd3ec24b674fb3393","tarball":"http://registry-npm.ywwl.com/@putout/plugin-strict-mode/download/@putout/plugin-strict-mode-4.0.0.tgz","fileCount":6,"unpackedSize":5880,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICF8A8sGj0Z5c1ZfrJniIEo29EAmaLmrWYVNl0Sod37eAiEAinr0rq70A9XD3j5FGIaIU+Bhz3fXdmq3t+/ArHljz20="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRtC/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBcA//bpVsuD7U7/Xl6KGcP0Fv9wGBp5wxpUHNNPg/HNxSngLBy57Y\r\n0a/wwenZr06fDVwg3xiqtEMJrAcd8oX1965ngc4Vrq5d2TaC6Im6Xubrdrm4\r\nU2oKzqU9jFx6uWiJGn6KPRBgloorz+tM7o2SwTDa+Ml5Z+NBjzcQcXh7ZylZ\r\nwZgZ8dPOcakPCqS8DA02e31Amhi4Vhke+5VvIBHSSyelRxQIZhxJhRsXp4CJ\r\nH/JAepGVT72sBrXa+UZEbZa6DnZLPtWxOT4IYMxzgv9YnAwG44LKalKfPg8v\r\nTbaQIShLyUWHu6HsB08UhMgF0NX6hCtfzJjjpDu6udDioj70EHGT+D8NYjI7\r\nISDpmGUeqLG+szv7eZh3HFqGoigj9bIgTVd7f5lq+WXOJHsxJxynVolIc/yw\r\nikYl6nMpfBPdajZV8wytdpMczFD8UTgBA6rIJ4fg6vQJEGphr1Z5jq4j5dgG\r\nMbj01Fw6lWnbNLppl70VGXktIECzmpDM7ZPgxQQXqAAqu1xXk5jMhNaqek3W\r\nCmTqYaIWbZF87+I8n597wLIUk02TfYL/MoVpnErltMCufRt0LjOhmRIPZkcU\r\nc7WsxOwB4fkF0UreycEVJMbTL2z/fa35ug8XPQPLRe9vu62GeQbysufKf7ht\r\n3eCApj9hRX4zdTmXDPMdL4hYNU7hN9YSR94=\r\n=WDAB\r\n-----END PGP SIGNATURE-----\r\n","size":2586,"noattachment":false,"key":"/@putout/plugin-strict-mode/-/@putout/plugin-strict-mode-4.0.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_4.0.0_1648808126823_0.5781716165718189"},"_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":1648808126977,"_cnpm_publish_time":1648808126977,"dist-tags":{"latest":"10.0.2"}}