Remediate autofixable ESLint findings
ProprietaryApplies every ESLint autofix remediation in this package, covering the core ESLint rules that ship an autofixer and can be reproduced faithfully on the LST, as the JavaScript and TypeScript counterpart to org.openrewrite.staticanalysis.CommonStaticAnalysis. Each sub-recipe replicates the behavior of eslint --fix for one rule under that rule's default options, and is also available to run individually. Object.hasOwn and logical assignment (||=, &&=, ??=) are only written where the nearest package.json declares an engines.node range admitting no Node.js older than 16.9 and 15 respectively. Logical assignment is also written in TypeScript files, which tsc lowers, unless their package.json declares an older Node.js, and Object.hasOwn never is, since tsconfig's lib may lack it. The other rules write at most ES2018 syntax, which every Node.js release since 8.3 parses.
io. moderne. javascript. cleanup. ESLintAutofixmod run . --recipe= io. moderne. javascript. cleanup. ESLintAutofixInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.