{"name":"@putout/plugin-putout-config","version":"6.9.3","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin helps to maintain putout config","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-putout-config#readme","main":"lib/index.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","putout","config"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=36"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-putout-config@6.9.3","gitHead":"513dbd05d7da36be05e435d83c9b57d69e986c6a","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"20.15.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/jImoMGZbeHnM37p9SQkHfq3vTxwM3Yzg8I/MPibDcD3dt+368R24fhYnqxCfe0Yfd4fZC1VNkVox0/nkcwwAA==","shasum":"68f9dd56fb738f2ac490b00e0633f560947068f6","tarball":"http://registry-npm.ywwl.com/@putout/plugin-putout-config/download/@putout/plugin-putout-config-6.9.3.tgz","fileCount":18,"unpackedSize":23008,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDrXrgLaNBKew6mBJoGXAp2qe0ShkXmnEKY0DR34NicNAiAjqQcY0zmHMrrN3jqV+hJEgGtWvBAhWYp+SuTHmCbcpA=="}],"size":5750,"noattachment":false,"key":"/@putout/plugin-putout-config/-/@putout/plugin-putout-config-6.9.3.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-putout-config_6.9.3_1726042072557_0.13626039262002299"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-putout-config [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-putout-config.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-putout-config\"npm\"\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin helps with 🐊[**Putout Config**](https://github.com/coderaiser/putout#-configuration).\n\n## Install\n\n```\nnpm i @putout/plugin-putout-config -D\n```\n\n## Rules\n\n- ✅ [apply-conditions][#apply-conditions];\n- ✅ [apply-for-of][#apply-for-of];\n- ✅ [apply-labels][#apply-labels];\n- ✅ [apply-math][#apply-math];\n- ✅ [apply-nodejs][#apply-nodejs];\n- ✅ [apply-promises][#apply-promises];\n- ✅ [apply-tape][#apply-tape];\n- ✅ [apply-types][#apply-types];\n- ✅ [convert-boolean-to-string][#convert-boolean-to-string];\n- ✅ [move-formatter-up][#move-formatter-up];\n- ✅ [remove-empty][#remove-empty];\n- ✅ [remove-empty-file][#remove-empty-file];\n- ✅ [rename-property][#rename-property];\n- ✅ [rename-rules][#rename-rules];\n\n## Config\n\n```json\n{\n    \"rules\": {\n        \"putout-config/apply-conditions\": \"on\",\n        \"putout-config/apply-for-of\": \"on\",\n        \"putout-config/apply-labels\": \"on\",\n        \"putout-config/apply-math\": \"on\",\n        \"putout-config/apply-nodejs\": \"on\",\n        \"putout-config/apply-tape\": \"on\",\n        \"putout-config/apply-types\": \"on\",\n        \"putout-config/apply-promises\": \"on\",\n        \"putout-config/convert-boolean-to-string\": \"on\",\n        \"putout-config/move-formatter-up\": \"on\",\n        \"putout-config/remove-empty\": \"on\",\n        \"putout-config/remove-empty-file\": \"off\",\n        \"putout-config/rename-rules\": \"on\"\n    }\n}\n```\n\n## apply-conditions\n\nApply [`conditions`](https://github.com/coderaiser/putout/tree/master/packages/plugin-conditions#readme) according to:\n\n- 🐊[**Putout v29**](https://github.com/coderaiser/putout/releases/tag/v29.0.0):\n\n```diff\n{\n    \"rules\": {\n-       \"apply-comparison-order\": \"off\" ,\n-       \"apply-if-condition\": \"off\",\n-       \"convert-comparison-to-boolean\": \"off\",\n-       \"convert-equal-to-strict-equal\": \"off\",\n-       \"remove-useless-conditions/evaluate\": \"off\",\n-       \"remove-useless-conditions/simplify\": \"off\",\n-       \"convert-comparison-to-boolean\": \"off\",\n-       \"remove-constant-conditions\": \"off\",\n-       \"remove-boolean-from-assertions\": \"off\",\n+       \"conditions/apply-comparison-order\": \"off\",\n+       \"conditions/apply-if\": \"off\",\n+       \"conditions/convert-comparison-to-boolean\": \"off\",\n+       \"conditions/convert-equal-to-strict-equal\": \"off\",\n+       \"conditions/evaluate\": \"off\"\n+       \"conditions/simplify\": \"off\",\n+       \"conditions/convert-comparison-to-boolean\": \"off\",\n+       \"conditions/remove-constant\": \"off\",\n+       \"conditions/remove-boolean\": \"off\"\n  }\n}\n```\n\n- 🐊[**Putout v32**](https://github.com/coderaiser/putout/releases/tag/v32.0.0):\n\n```diff\n{\n    \"rules\": {\n-        \"remove-useless-else\": \"off\",\n-        \"merge-if-statements\": \"off\"\n+        \"conditions/remove-useless-else\": \"off\",\n+        \"conditions/merge-if-statements\": \"off\"\n    }\n}\n```\n\n## apply-for-of\n\nApply [`for-of`](https://github.com/coderaiser/putout/tree/master/packages/plugin-for-of#readme) according to 🐊[**Putout v29**](https://github.com/coderaiser/putout/releases/tag/v29.0.0).\n\n```diff\n{\n    \"rules\": {\n-       \"convert-for-to-for-of\": \"off\",\n-       \"convert-for-each-to-for-of\": \"off\",\n-       \"convert-for-in-to-for-of\": \"off\",\n-       \"convert-map-to-for-of\": \"off\",\n-       \"remove-useless-for-of\": \"off\",\n-       \"remove-unused-for-of-variables\": \"off\",\n-       \"remove-useless-array-from\": \"off\",\n-       \"remove-useless-variables/for-of\": \"off\"\n-       \"convert-reduce-to-for-of\": \"off\",\n+       \"for-of/for\": \"off\",\n+       \"for-of/for-each\": \"off\",\n+       \"for-of/for-in\": \"off\",\n+       \"for-of/map\": \"off\",\n+       \"for-of/remove-useless\": \"off\",\n+       \"for-of/remove-unused-variables\": \"off\",\n+       \"for-of/remove-useless-array-from\": \"off\",\n+       \"for-of/remove-useless-variables\": \"off\",\n+       \"for-of/reduce\": \"off\"\n    }\n}\n```\n\n## apply-labels\n\nApply [`labels`](https://github.com/coderaiser/putout/tree/master/packages/plugin-labels#readme) according to 🐊[**Putout v36**](https://github.com/coderaiser/putout/releases/tag/v36.0.0). Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/9a3493fedfafdb25e86cf76af69dd003/8678f3b271ee6f6d13bceeedbe3b143f34be9f55).\n\n### ❌ Example of incorrect code\n\n```json\n{\n    \"rules\": {\n        \"remove-unused-labels\": \"on\",\n        \"convert-label-to-object\": \"on\"\n    }\n}\n```\n\n### ✅ Example of correct code\n\n```json\n{\n    \"rules\": {\n        \"labels/remove-unused\": \"on\",\n        \"labels/convert-to-object\": \"on\"\n    }\n}\n```\n\n## apply-math\n\nApply [`math`](https://github.com/coderaiser/putout/tree/master/packages/plugin-labels#readme) according to 🐊[**Putout v28**](https://github.com/coderaiser/putout/releases/tag/v28.0.0).\n\n```diff\n{\n    \"rules\": {\n-        \"convert-math-pow\": \"off\",\n-        \"apply-numeric-separators\": \"off\",\n-        \"convert-imul-to-multiplication\": \"off\",\n-        \"convert-sqrt-to-hypot\": \"off\"\n+        \"math/apply-exponential\": \"off\",\n+        \"math/apply-numeric-separators\": \"off\",\n+        \"math/apply-multiplication\": \"off\",\n+        \"math/convert-sqrt-to-hypot\": \"off\"\n    }\n}\n```\n\n## apply-nodejs\n\nApply [`nodejs`](https://github.com/coderaiser/putout/tree/master/packages/plugin-nodejs#readme) according to:\n\n- 🐊[**Putout v28**](https://github.com/coderaiser/putout/releases/tag/v33.0.0):\n\n```diff\n{\n    \"rules\": {\n-       \"convert-top-level-return\": \"off\",\n+       \"nodejs/convert-top-level-return\": \"off\"\n-       \"remove-process-exit\": \"off\"\n+       \"nodejs/remove-process-exit\": \"off\"\n    }\n}\n```\n\n- 🐊[**Putout v33**](https://github.com/coderaiser/putout/releases/tag/v33.0.0):\n\n```diff\n{\n    \"rules\": {\n-    \"convert-esm-to-commonjs\": \"on\",\n-    \"convert-commonjs-to-esm\": \"on'\n+    \"nodejs/convert-esm-to-commonjs\": \"on\",\n+    \"nodejs/convert-commonjs-to-esm\": \"on'\n    }\n}\n```\n\n- 🐊[**Putout v34**](https://github.com/coderaiser/putout/releases/tag/v34.0.0):\n\n```diff\n{\n    \"rules\": {\n-       \"strict-mode/add-missing\": \"off\",\n-       \"strict-mode/remove-useless\": \"off\"\n+       \"nodejs/remove-useless-strict-mode\": \"off\",\n+       \"nodejs/add-missing-strict-mode\": \"off\"\n}\n```\n\n## apply-promises\n\nApply [`promises`](https://github.com/coderaiser/putout/tree/master/packages/plugin-promises#readme) according to:\n\n- 🐊[**Putout v30**](https://github.com/coderaiser/putout/releases/tag/v30.0.0);\n\n```diff\n{\n    \"rules\": {\n-       \"remove-useless-variables/await\": \"off\",\n+       \"promises/remove-useless-variables\": \"off\"\n    }\n}\n```\n\n## apply-tape\n\nApply [`tape`](https://github.com/coderaiser/putout/tree/master/packages/plugin-tape#readme) according to:\n\n- 🐊[**Putout v33**](https://github.com/coderaiser/putout/releases/tag/v33.0.0);\n\n### ❌ Example of incorrect code\n\n```json\n{\n    \"rules\": {\n        \"convert-mock-require-to-mock-import\": \"off\"\n    }\n}\n```\n\n### ✅ Example of correct code\n\n```json\n{\n    \"rules\": {\n        \"tape/convert-mock-require-to-mock-import\": \"off\"\n    }\n}\n```\n\n## apply-types\n\nApply [`types`](https://github.com/coderaiser/putout/tree/master/packages/plugin-types#readme) according to:\n\n- 🐊[**Putout v29**](https://github.com/coderaiser/putout/releases/tag/v29.0.0);\n\n```diff\n{\n    \"rules\": {\n-       \"convert-typeof-to-is-type\": \"off\" ,\n-       \"remove-useless-type-conversions\": \"off\",\n-       \"remove-useless-typeof\": \"off\",\n-       \"apply-is-array\": \"off\",\n-       \"remove-useless-type-conversion/with-double-negations\": \"off\",\n+       \"types/convert-typeof-to-is-type\": \"off\",\n+       \"types/remove-useless-conversion\": \"off\",\n+       \"types/remove-double-negations\": \"off\",\n+       \"types/remove-useless-typeof\": \"off\",\n+       \"types/apply-is-array\": \"off\",\n+       \"types/remove-double-negations\": \"off\"\n  }\n}\n```\n\n## convert-boolean-to-string\n\n### ❌ Example of incorrect code\n\n```json\n{\n    \"rules\": {\n        \"remove-unused-variables\": true,\n        \"remove-debugger\": false\n    }\n}\n```\n\n### ✅ Example of correct code\n\n```json\n{\n    \"rules\": {\n        \"remove-unused-variables\": \"on\",\n        \"remove-debugger\": \"off\"\n    }\n}\n```\n\n## move-formatter-up\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/48ce05b358a9118250acdc0b35df0fc8/50aeb680193ab4cd5d247e098ff90be8d4092111).\n\n### ❌ Example of incorrect code\n\n```json\n{\n    \"parser\": \"babel\",\n    \"rules\": {\n        \"remove-unused-variables\": \"off\"\n    },\n    \"formatter\": \"progress-bar\"\n}\n```\n\n### ✅ Example of correct code\n\n```json\n{\n    \"parser\": \"babel\",\n    \"formatter\": \"progress-bar\",\n    \"rules\": {\n        \"remove-unused-variables\": \"off\"\n    }\n}\n```\n\n## remove-empty\n\n### ❌ Example of incorrect code\n\n```json\n{\n    \"rules\": {},\n    \"plugins\": [],\n    \"match\": {\n        \"*.js\": {\n            \"remove-unused-variables\": \"off\"\n        }\n    }\n}\n```\n\n### ✅ Example of correct code\n\n```json\n{\n    \"match\": {\n        \"*.js\": {\n            \"remove-unused-variables\": \"off\"\n        }\n    }\n}\n```\n\n## remove-empty-file\n\nCheckout in 🐊[**Putout Editor**](https://putout.vercel.app/#/gist/3d4878a71fe3fe5a2676b2f1380bad2e/071b8db5c4c8e00f73b2d6d3ded040d0d64d2977).\nWhen `.putout.json` content is:\n\n```js\n{}\n```\n\nIt has no sense and removed:\n\n```diff\n /\n `-- /\n-     `-- .putout.json\n```\n\n## rename-rules\n\nRename rules according to:\n\n- 🐊[**Putout v29**](https://github.com/coderaiser/putout/releases/tag/v29.0.0):\n\n```diff\n{\n    \"rules\": {\n-       \"declare-undefined-variables\": \"off\" ,\n+       \"declare\": \"off\",\n-       \"apply-maybe\": \"off\" ,\n+       \"maybe\": \"off\",\n-       \"apply-array-at\": \"off\",\n+       \"apply-at\": \"off\",\n    }\n}\n```\n\n- 🐊[**Putout v26**](https://github.com/coderaiser/putout/releases/tag/v26.0.0):\n\n```diff\n{\n    \"rules\": {\n-       \"strict-mode/add\": \"off\",\n-       \"strict-mode/remove\": \"off\",\n+       \"strict-mode/add-missing\": \"off\",\n+       \"strict-mode/remove-useless\": \"off\",\n    }\n}\n```\n\n## License\n\nMIT\n","publish_time":1726042072684,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1726042072684,"dist-tags":{"latest":"12.3.1"}}