{"name":"@putout/plugin-putout-config","version":"7.3.0","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+https://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":">=37"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-putout-config@7.3.0","gitHead":"5f315823ce42fad8f24c0b419ed385250b74e84f","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"20.18.1","_npmVersion":"10.9.0","dist":{"integrity":"sha512-EY/FzETISr6X/MzIKADa9E8Zf/jHn84uHuAc2IJE4QzW5eQee5Ty0VavLGhQqIAUHcqdthdJG59VpU0jaE2rPg==","shasum":"a2de2b4c6a7daa522c97316ae1c844ed0202bfa1","tarball":"http://registry-npm.ywwl.com/@putout/plugin-putout-config/download/@putout/plugin-putout-config-7.3.0.tgz","fileCount":21,"unpackedSize":26755,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHih4pRCUvasjO8hvb3Y+RLhPSI5nsn/1KSnM9R08vLcAiA0ljxgBp5593dGwX9+W9Xw9SdszR7+GCiYR6D+gthlfA=="}],"size":6310,"noattachment":false,"key":"/@putout/plugin-putout-config/-/@putout/plugin-putout-config-7.3.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-putout-config_7.3.0_1735387981909_0.4447511252739085"},"_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-esm](#apply-esm);\n- ✅ [apply-parens](#apply-parens);\n- ✅ [apply-for-of](#apply-for-of);\n- ✅ [apply-labels](#apply-labels);\n- ✅ [apply-math](#apply-math);\n- ✅ [apply-nodejs](#apply-nodejs);\n- ✅ [apply-optional-chaining](#apply-optional-chaining);\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-esm\": \"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-optional-chaining\": \"on\",\n        \"putout-config/apply-parens\": \"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-esm\n\nApply [`esm`](https://github.com/coderaiser/putout/tree/master/packages/plugin-esm#readme) according to:\n\n- 🐊[**Putout v37**](https://github.com/coderaiser/putout/releases/tag/v37.0.0):\n\n```diff\n{\n    \"rules\": {\n-       \"remove-empty/import\": \"on\",\n-       \"remove-empty/export\": \"on\",\n+       \"esm/remove-empty-import\": \"on\",\n+       \"esm/remove-empty-export\": \"on\",\n-       \"convert-assert-to-with\": \"off\",\n-       \"group-imports-by-source\": \"on\",\n-       \"declare-imports-first\": \"on\",\n-       \"remove-quotes-from-import-assertions\": \"on\",\n-       \"merge-duplicate-imports\": \"on\"\n+       \"esm/convert-assert-to-with\": \"off\",\n+       \"esm/group-imports-by-source\": \"on\",\n+       \"esm/declare-imports-first\": \"on\",\n+       \"esm/remove-quotes-from-import-assertions\": \"on\",\n+       \"esm/merge-duplicate-imports\": \"on\"\n  }\n}\n```\n\n## apply-parens\n\nApply [`parens`](https://github.com/coderaiser/putout/tree/master/packages/plugin-parens#readme) according to:\n\n- 🐊[**Putout v37**](https://github.com/coderaiser/putout/releases/tag/v37.0.0):\n\n```diff\n{\n    \"rules\": {\n-       \"add-missing-parens\": \"on\"\n+       \"parens/add-missing\": \"on\"\n  }\n}\n```\n\n## apply-optional-chaining\n\nApply [`optional-chaining`](https://github.com/coderaiser/putout/tree/master/packages/plugin-optional-chaining#readme) according to:\n\n- 🐊[**Putout v37**](https://github.com/coderaiser/putout/releases/tag/v37.0.0):\n\n```diff\n{\n    \"rules\": {\n-       \"convert-optional-to-logical/assign\": \"on\",\n-       \"convert-optional-to-logical/call\": \"off\",\n+       \"optional-chaining/convert-optional-assign-to-logical\": \"on\",\n+       \"optional-chaining/convert-optional-to-logical\": \"off\"\n-       \"apply-optional-chaining/assign\": \"off\"\n-       \"apply-optional-chaining/use\": \"on\"\n+       \"optional-chaining/convert-logical-assign-to-optional\": \"off\",\n+       \"optional-chaining/convert-logical-to-optional\": \"off\"\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":1735387982117,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1735387982117,"dist-tags":{"latest":"12.3.1"}}