{"name":"@putout/plugin-strict-mode","version":"5.2.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-declare-undefined-variables":"*","@putout/plugin-nodejs":"*","@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":"^15.0.0","lerna":"^5.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"54ad9daa5bf4dfe0e8e334b0d416281d5f1fd055","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-strict-mode@5.2.0","_nodeVersion":"18.3.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-ksqSNafiqfjY8xjn4edMlyEIkj1lnqBptAMabZI13Ej2GMVkqwFs+XlD4UZkzjsBvQpiP7v7+E/M1RHw6UWuvg==","shasum":"85615c6e3618cb0d07d78c3e643caf31364354bb","tarball":"http://registry-npm.ywwl.com/@putout/plugin-strict-mode/download/@putout/plugin-strict-mode-5.2.0.tgz","fileCount":6,"unpackedSize":6280,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESFs0u6uKeNJqYGsmcEZFv4edyrqCiM95g9CsxU2J6tAiEAp2k4h5K1FlIDPY8r9mqDjF4ju+leMA/ANMcLK+460Ew="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqHt8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpe3RAAk4i31/xn++DC8KFXUvs7lhlhcD6yg07vXlSPMnSFZeP/y0dJ\r\noTHooWX16yAdcBlwBcMUP5EohCN6l1l0ZlOTn5vnyDYc45kDoyWMshxHpj24\r\ndxPUXqHkuMqAKhww6IM/YpAi+uoVMW0vC7UEAU+aXSDSSgq1JoKs5ATvK+8S\r\nJnJobAvPWz2r0046G9XM2pPnLbWyDBWbO5bu8xG4P699CBla/GXyR5gYhzFG\r\ns6UeftL85sAcWEl4nASQFjBo9ax5cjGjkfcRkeBbpBvQf0lRgB8BKO060IZx\r\nN/FlfCKO+h+x/bUGl99jXThrhNe4p3y8jChtFW3zzkq40APVeCXHHaGiJW04\r\n3nNSAFTGEbbdkgx4OkrCWezXaInpdKqIL8/t7Q3j0VUnG0pvUoSiPOco5YQ2\r\nkxP2WEyoNzPUHfJuxfl7M5tO/QCYEbUDzwaVQJsC1VGP0V86htQCAHl60A0h\r\nn0dA6iHaRpOFLZdqCnvnG2nzrMJ8jr8d/DS+AGteHVTLwcVvyd7pP/LntTG7\r\nSGJ0y3blbsd2y8f5I+vnqw9NBuIeUo8n9lwGEuwzaFRjPkWmsuGwVfGx5MnT\r\nhIaU+BkAhk92pmfn3fuiu1A/xus7va31s/bcf9ktPXtteltXLlheok2AVDv8\r\nX/4NXnpzZcOV8acI3G8hVPG/qE2ypHga/D8=\r\n=OIh5\r\n-----END PGP SIGNATURE-----\r\n","size":2683,"noattachment":false,"key":"/@putout/plugin-strict-mode/-/@putout/plugin-strict-mode-5.2.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_5.2.0_1655208828675_0.2379727476827731"},"_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":1655208828851,"_cnpm_publish_time":1655208828851,"dist-tags":{"latest":"10.0.2"}}