hypermod-community
hypermod-community copied to clipboard
Lint using 🐊Putout
Hi again! I think CodeshiftComunity does a great job of popularizing codemods, and I want to suggest you work results of a tool which simplifies writing, testing and using codemods.
🐊 Putout Report

Among the maxims on Lord Naoshige’s wall there was this one: ”Matters of’ great concern should be treated lightly.” Master lttei commented, “Matters of small concern should be treated seriously.”
(c) Yamamoto Tsunetomo "Hagakure"
Command used:
putout packages --fix
☝️ Any rule can be disabled.
Applied rules:
- ✅ apply-destructuring
- ✅ convert-typeof-to-is-type
- ✅ extract-sequence-expressions
- ✅ promises/apply-top-level-await
- ✅ promises/remove-useless-async
- ✅ remove-nested-blocks
- ✅ remove-constant-conditions
- ✅ remove-unused-variables
- ✅ try-catch/async
- ✅ convert-for-each-to-for-of
- ✅ simplify-ternary
- ✅ convert-object-assign-to-merge-spread
- ✅ regexp/optimize
- ✅ regexp/apply-literal-notation
- ✅ remove-useless-new
Current config for putout v25:
{
"rules": {
"remove-console": "off",
"package-json/add-type": "off",
"strict-mode": "off",
"nodejs/convert-dirname-to-url": "off"
},
"ignore": [
"tsconfig.json",
"package.json",
".npmignore",
".gitignore"
]
}
Hope in integration in future :).