From e6a9587a31f619115d92ac99d97b371c9d3bf6b7 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Fri, 13 Sep 2024 00:00:40 +0200 Subject: [PATCH] Update recipeDescriptors.yml and CHANGELOG --- src/main/resources/CHANGELOG-2024-09-12.md | 509 +++ src/main/resources/recipeDescriptors.yml | 4150 +++++++++++++++++++- 2 files changed, 4477 insertions(+), 182 deletions(-) create mode 100644 src/main/resources/CHANGELOG-2024-09-12.md diff --git a/src/main/resources/CHANGELOG-2024-09-12.md b/src/main/resources/CHANGELOG-2024-09-12.md new file mode 100644 index 0000000..7cd7b7d --- /dev/null +++ b/src/main/resources/CHANGELOG-2024-09-12.md @@ -0,0 +1,509 @@ +# X.XX.X release (2024-09-12) + +{% hint style="info" %} +This changelog only shows what recipes have been added, removed, or changed. OpenRewrite may do releases that do not include these types of changes. To see these changes, please go to the [releases page](https://github.com/openrewrite/rewrite/releases). +{% endhint %} + +## New Artifacts +* rewrite-codemods +* rewrite-codemods-ng + +## New Recipes + +* [org.openrewrite.apache.poi.ReplaceSetBoldweightWithSetBoldRecipes](https://docs.openrewrite.org/recipes/apache/poi/replacesetboldweightwithsetboldrecipes): Replace `Font.setBoldweight(short)` or equivalent with `Font.setBold(boolean)`. +* [org.openrewrite.apache.poi.ReplaceSetBoldweightWithSetBoldRecipes$ReplaceSetBoldweightBoldWithSetBoldTrueRecipe](https://docs.openrewrite.org/recipes/apache/poi/replacesetboldweightwithsetboldrecipesusdreplacesetboldweightboldwithsetboldtruerecipe): Replace `Font.setBoldweight(Font.BOLDWEIGHT_BOLD)` or equivalent with `Font.setBold(true)`. +* [org.openrewrite.apache.poi.ReplaceSetBoldweightWithSetBoldRecipes$ReplaceSetBoldweightNormalWithSetBoldFalseRecipe](https://docs.openrewrite.org/recipes/apache/poi/replacesetboldweightwithsetboldrecipesusdreplacesetboldweightnormalwithsetboldfalserecipe): Replace `Font.setBoldweight(Font.BOLDWEIGHT_NORMAL)` or equivalent with `Font.setBold(false)`. +* [org.openrewrite.apache.poi.ReplaceSetCellTypeRecipes](https://docs.openrewrite.org/recipes/apache/poi/replacesetcelltyperecipes): Replace `Cell.setCellType(int)` with equivalent `Cell.setCellType(CellType)`. +* [org.openrewrite.apache.poi.ReplaceSetCellTypeRecipes$ReplaceSetCellTypeBlankRecipe](https://docs.openrewrite.org/recipes/apache/poi/replacesetcelltyperecipesusdreplacesetcelltypeblankrecipe): Replace `Cell.setCellType(Cell.CELL_TYPE_BLANK)` with `Cell.setCellType(CellType.BLANK)`. +* [org.openrewrite.apache.poi.ReplaceSetCellTypeRecipes$ReplaceSetCellTypeBooleanRecipe](https://docs.openrewrite.org/recipes/apache/poi/replacesetcelltyperecipesusdreplacesetcelltypebooleanrecipe): Replace `Cell.setCellType(Cell.CELL_TYPE_BOOLEAN)` with `Cell.setCellType(CellType.BOOLEAN)`. +* [org.openrewrite.apache.poi.ReplaceSetCellTypeRecipes$ReplaceSetCellTypeErrorRecipe](https://docs.openrewrite.org/recipes/apache/poi/replacesetcelltyperecipesusdreplacesetcelltypeerrorrecipe): Replace `Cell.setCellType(Cell.CELL_TYPE_ERROR)` with `Cell.setCellType(CellType.ERROR)`. +* [org.openrewrite.apache.poi.ReplaceSetCellTypeRecipes$ReplaceSetCellTypeFormulaRecipe](https://docs.openrewrite.org/recipes/apache/poi/replacesetcelltyperecipesusdreplacesetcelltypeformularecipe): Replace `Cell.setCellType(Cell.CELL_TYPE_FORMULA)` with `Cell.setCellType(CellType.FORMULA)`. +* [org.openrewrite.apache.poi.ReplaceSetCellTypeRecipes$ReplaceSetCellTypeNumericRecipe](https://docs.openrewrite.org/recipes/apache/poi/replacesetcelltyperecipesusdreplacesetcelltypenumericrecipe): Replace `Cell.setCellType(Cell.CELL_TYPE_NUMERIC)` with `Cell.setCellType(CellType.NUMERIC)`. +* [org.openrewrite.apache.poi.ReplaceSetCellTypeRecipes$ReplaceSetCellTypeStringRecipe](https://docs.openrewrite.org/recipes/apache/poi/replacesetcelltyperecipesusdreplacesetcelltypestringrecipe): Replace `Cell.setCellType(Cell.CELL_TYPE_STRING)` with `Cell.setCellType(CellType.STRING)`. +* [org.openrewrite.apache.poi.UpgradeApachePoi_3_17](https://docs.openrewrite.org/recipes/apache/poi/upgradeapachepoi_3_17): Migrates to the last Apache POI 3.x release. This recipe modifies build files and makes changes to deprecated/preferred APIs that have changed between versions. +* [org.openrewrite.codemods.ApplyCodemod](https://docs.openrewrite.org/recipes/codemods/applycodemod): Applies a codemod represented by an NPM package to all source files. +* [org.openrewrite.codemods.ESLint](https://docs.openrewrite.org/recipes/codemods/eslint): Run [ESLint](https://eslint.org/) across the code to fix common static analysis issues in the code.

This requires the code to have an existing ESLint configuration. +* [org.openrewrite.codemods.Putout](https://docs.openrewrite.org/recipes/codemods/putout): Run [Putout](https://github.com/coderaiser/putout) on your projects. +* [org.openrewrite.codemods.cleanup.javascript.ArrowBodyStyle](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/arrowbodystyle): Require braces around arrow function bodies
See [rule details](https://eslint.org/docs/latest/rules/arrow-body-style) +* [org.openrewrite.codemods.cleanup.javascript.BetterRegex](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/betterregex): Improve regexes by making them shorter, consistent, and safer.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/better-regex.md) +* [org.openrewrite.codemods.cleanup.javascript.CapitalizedComments](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/capitalizedcomments): Enforce or disallow capitalization of the first letter of a comment
See [rule details](https://eslint.org/docs/latest/rules/capitalized-comments) +* [org.openrewrite.codemods.cleanup.javascript.CatchErrorName](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/catcherrorname): Enforce a specific parameter name in catch clauses.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/catch-error-name.md) +* [org.openrewrite.codemods.cleanup.javascript.ConsistentDestructuring](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/consistentdestructuring): Use destructured variables over properties.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-destructuring.md) +* [org.openrewrite.codemods.cleanup.javascript.ConsistentTypeSpecifierStyle](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/consistenttypespecifierstyle): Enforce or ban the use of inline type-only markers for named imports
See rule details for [import/consistent-type-specifier-style](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/consistent-type-specifier-style.md) +* [org.openrewrite.codemods.cleanup.javascript.Curly](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/curly): Enforce consistent brace style for all control statements
See [rule details](https://eslint.org/docs/latest/rules/curly) +* [org.openrewrite.codemods.cleanup.javascript.CustomErrorDefinition](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/customerrordefinition): Enforce correct `Error` subclassing.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/custom-error-definition.md) +* [org.openrewrite.codemods.cleanup.javascript.DotNotation](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/dotnotation): Enforce dot notation whenever possible
See [rule details](https://eslint.org/docs/latest/rules/dot-notation) +* [org.openrewrite.codemods.cleanup.javascript.EmptyBraceSpaces](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/emptybracespaces): Enforce no spaces between braces.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/empty-brace-spaces.md) +* [org.openrewrite.codemods.cleanup.javascript.Eqeqeq](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/eqeqeq): Require the use of `===` and `!==`
See [rule details](https://eslint.org/docs/latest/rules/eqeqeq) +* [org.openrewrite.codemods.cleanup.javascript.EscapeCase](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/escapecase): Require escape sequences to use uppercase values.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/escape-case.md) +* [org.openrewrite.codemods.cleanup.javascript.ExplicitLengthCheck](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/explicitlengthcheck): Enforce explicitly comparing the length or size property of a value.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/explicit-length-check.md) +* [org.openrewrite.codemods.cleanup.javascript.First](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/first): Ensure all imports appear before other statements
See rule details for [import/first](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/first.md) +* [org.openrewrite.codemods.cleanup.javascript.LogicalAssignmentOperators](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/logicalassignmentoperators): Require or disallow logical assignment operator shorthand
See [rule details](https://eslint.org/docs/latest/rules/logical-assignment-operators) +* [org.openrewrite.codemods.cleanup.javascript.MultilineCommentStyle](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/multilinecommentstyle): Enforce a particular style for multiline comments
See [rule details](https://eslint.org/docs/latest/rules/multiline-comment-style) +* [org.openrewrite.codemods.cleanup.javascript.NewForBuiltins](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/newforbuiltins): Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol`, and `BigInt`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/new-for-builtins.md) +* [org.openrewrite.codemods.cleanup.javascript.NewlineAfterImport](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/newlineafterimport): Enforce a newline after import statements
See rule details for [import/newline-after-import](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/newline-after-import.md) +* [org.openrewrite.codemods.cleanup.javascript.NoAbsolutePath](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noabsolutepath): Forbid import of modules using absolute paths
See rule details for [import/no-absolute-path](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-absolute-path.md) +* [org.openrewrite.codemods.cleanup.javascript.NoArrayForEach](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noarrayforeach): Prefer `for…of` over the `forEach` method.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-for-each.md) +* [org.openrewrite.codemods.cleanup.javascript.NoArrayMethodThisArgument](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noarraymethodthisargument): Disallow using the `this` argument in array methods.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-method-this-argument.md) +* [org.openrewrite.codemods.cleanup.javascript.NoArrayPushPush](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noarraypushpush): Enforce combining multiple `Array#push()` into one call.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-push-push.md) +* [org.openrewrite.codemods.cleanup.javascript.NoAwaitExpressionMember](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noawaitexpressionmember): Disallow member access from `await` expression.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-expression-member.md) +* [org.openrewrite.codemods.cleanup.javascript.NoConsoleSpaces](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noconsolespaces): Do not use leading/trailing space between `console.log` parameters.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-console-spaces.md) +* [org.openrewrite.codemods.cleanup.javascript.NoDivRegex](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nodivregex): Disallow equal signs explicitly at the beginning of regular expressions
See [rule details](https://eslint.org/docs/latest/rules/no-div-regex) +* [org.openrewrite.codemods.cleanup.javascript.NoDuplicates](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noduplicates): Forbid repeated import of the same module in multiple places
See rule details for [import/no-duplicates](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-duplicates.md) +* [org.openrewrite.codemods.cleanup.javascript.NoElseReturn](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noelsereturn): Disallow else blocks after return statements in if statements
See [rule details](https://eslint.org/docs/latest/rules/no-else-return) +* [org.openrewrite.codemods.cleanup.javascript.NoEmptyNamedBlocks](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noemptynamedblocks): Forbid empty named import
See rule details for [import/no-empty-named-blocks](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-empty-named-blocks.md) +* [org.openrewrite.codemods.cleanup.javascript.NoExtraBind](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noextrabind): Disallow unnecessary calls to `.bind()`
See [rule details](https://eslint.org/docs/latest/rules/no-extra-bind) +* [org.openrewrite.codemods.cleanup.javascript.NoExtraLabel](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noextralabel): Disallow unnecessary labels
See [rule details](https://eslint.org/docs/latest/rules/no-extra-label) +* [org.openrewrite.codemods.cleanup.javascript.NoForLoop](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noforloop): Do not use a `for` loop that can be replaced with a `for-of` loop.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-for-loop.md) +* [org.openrewrite.codemods.cleanup.javascript.NoHexEscape](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nohexescape): Enforce the use of Unicode escapes instead of hexadecimal escapes.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-hex-escape.md) +* [org.openrewrite.codemods.cleanup.javascript.NoImplicitCoercion](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noimplicitcoercion): Disallow shorthand type conversions
See [rule details](https://eslint.org/docs/latest/rules/no-implicit-coercion) +* [org.openrewrite.codemods.cleanup.javascript.NoImportModuleExports](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noimportmoduleexports): Forbid import statements with CommonJS module.exports
See rule details for [import/no-import-module-exports](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-import-module-exports.md) +* [org.openrewrite.codemods.cleanup.javascript.NoInstanceofArray](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noinstanceofarray): Require `Array.isArray()` instead of `instanceof Array`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-instanceof-array.md) +* [org.openrewrite.codemods.cleanup.javascript.NoLonelyIf](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nolonelyif): Disallow if statements as the only statement in else blocks
See [rule details](https://eslint.org/docs/latest/rules/no-lonely-if) +* [org.openrewrite.codemods.cleanup.javascript.NoNamespace](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nonamespace): Forbid namespace (a.k.a. "wildcard" `*`) imports.
See rule details for [import/no-namespace](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-namespace.md) +* [org.openrewrite.codemods.cleanup.javascript.NoNegatedCondition](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nonegatedcondition): Disallow negated conditions.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md) +* [org.openrewrite.codemods.cleanup.javascript.NoNestedTernary](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nonestedternary): Disallow nested ternary expressions.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-nested-ternary.md) +* [org.openrewrite.codemods.cleanup.javascript.NoNewArray](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nonewarray): Disallow `new Array()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-array.md) +* [org.openrewrite.codemods.cleanup.javascript.NoNewBuffer](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nonewbuffer): Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-buffer.md) +* [org.openrewrite.codemods.cleanup.javascript.NoNull](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nonull): Disallow the use of the `null` literal.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-null.md) +* [org.openrewrite.codemods.cleanup.javascript.NoRelativePackages](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/norelativepackages): Forbid importing packages through relative paths
See rule details for [import/no-relative-packages](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-relative-packages.md) +* [org.openrewrite.codemods.cleanup.javascript.NoStaticOnlyClass](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nostaticonlyclass): Disallow classes that only have static members.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-static-only-class.md) +* [org.openrewrite.codemods.cleanup.javascript.NoTypeofUndefined](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/notypeofundefined): Disallow comparing `undefined` using `typeof`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md) +* [org.openrewrite.codemods.cleanup.javascript.NoUndefInit](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/noundefinit): Disallow initializing variables to undefined
See [rule details](https://eslint.org/docs/latest/rules/no-undef-init) +* [org.openrewrite.codemods.cleanup.javascript.NoUnnecessaryAwait](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nounnecessaryawait): Disallow awaiting non-promise values.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md) +* [org.openrewrite.codemods.cleanup.javascript.NoUnneededTernary](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nounneededternary): Disallow ternary operators when simpler alternatives exist
See [rule details](https://eslint.org/docs/latest/rules/no-unneeded-ternary) +* [org.openrewrite.codemods.cleanup.javascript.NoUnreadableArrayDestructuring](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nounreadablearraydestructuring): Disallow unreadable array destructuring.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-array-destructuring.md) +* [org.openrewrite.codemods.cleanup.javascript.NoUselessComputedKey](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nouselesscomputedkey): Disallow unnecessary computed property keys in objects and classes
See [rule details](https://eslint.org/docs/latest/rules/no-useless-computed-key) +* [org.openrewrite.codemods.cleanup.javascript.NoUselessFallbackInSpread](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nouselessfallbackinspread): Disallow useless fallback when spreading in object literals.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-fallback-in-spread.md) +* [org.openrewrite.codemods.cleanup.javascript.NoUselessLengthCheck](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nouselesslengthcheck): Disallow useless array `length` check.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-length-check.md) +* [org.openrewrite.codemods.cleanup.javascript.NoUselessPathSegments](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nouselesspathsegments): Forbid unnecessary path segments in import and require statements
See rule details for [import/no-useless-path-segments](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-useless-path-segments.md) +* [org.openrewrite.codemods.cleanup.javascript.NoUselessPromiseResolveReject](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nouselesspromiseresolvereject): Disallow returning/yielding `Promise.resolve()`/`reject()` in `async` functions or promise callbacks.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md) +* [org.openrewrite.codemods.cleanup.javascript.NoUselessRename](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nouselessrename): Disallow renaming import, export, and destructured assignments to the same name
See [rule details](https://eslint.org/docs/latest/rules/no-useless-rename) +* [org.openrewrite.codemods.cleanup.javascript.NoUselessReturn](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nouselessreturn): Disallow redundant return statements
See [rule details](https://eslint.org/docs/latest/rules/no-useless-return) +* [org.openrewrite.codemods.cleanup.javascript.NoUselessSpread](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nouselessspread): Disallow unnecessary spread.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-spread.md) +* [org.openrewrite.codemods.cleanup.javascript.NoUselessUndefined](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nouselessundefined): Disallow useless `undefined`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-undefined.md) +* [org.openrewrite.codemods.cleanup.javascript.NoVar](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/novar): Require `let` or `const` instead of `var`
See [rule details](https://eslint.org/docs/latest/rules/no-var) +* [org.openrewrite.codemods.cleanup.javascript.NoZeroFractions](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/nozerofractions): Disallow number literals with zero fractions or dangling dots.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-zero-fractions.md) +* [org.openrewrite.codemods.cleanup.javascript.NumberLiteralCase](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/numberliteralcase): Enforce proper case for numeric literals.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/number-literal-case.md) +* [org.openrewrite.codemods.cleanup.javascript.NumericSeparatorsStyle](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/numericseparatorsstyle): Enforce the style of numeric separators by correctly grouping digits.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/numeric-separators-style.md) +* [org.openrewrite.codemods.cleanup.javascript.ObjectShorthand](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/objectshorthand): Require or disallow method and property shorthand syntax for object literals
See [rule details](https://eslint.org/docs/latest/rules/object-shorthand) +* [org.openrewrite.codemods.cleanup.javascript.OneVar](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/onevar): Enforce variables to be declared either together or separately in functions
See [rule details](https://eslint.org/docs/latest/rules/one-var) +* [org.openrewrite.codemods.cleanup.javascript.OperatorAssignment](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/operatorassignment): Require or disallow assignment operator shorthand where possible
See [rule details](https://eslint.org/docs/latest/rules/operator-assignment) +* [org.openrewrite.codemods.cleanup.javascript.Order](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/order): Enforce a convention in module import order
See rule details for [import/order](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/order.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferAddEventListener](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferaddeventlistener): Prefer `.addEventListener()` and `.removeEventListener()` over on-functions.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-add-event-listener.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferArrayFind](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferarrayfind): Prefer `.find()` and `.findLast()` over the first or last element from `.filter()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-find.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferArrayFlat](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferarrayflat): Prefer `Array#flat()` over legacy techniques to flatten arrays.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferArrayFlatMap](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferarrayflatmap): Prefer `.flatMap()` over `.map().flat()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat-map.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferArrayIndexOf](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferarrayindexof): Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-index-of.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferArraySome](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferarraysome): Prefer `.some()` over `.filter().length` check and `.{find,findLast}()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-some.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferArrowCallback](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferarrowcallback): Require using arrow functions for callbacks
See [rule details](https://eslint.org/docs/latest/rules/prefer-arrow-callback) +* [org.openrewrite.codemods.cleanup.javascript.PreferAt](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferat): Prefer `.at()` method for index access and `String#charAt()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-at.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferConst](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferconst): Require const declarations for variables that are never reassigned after declared
See [rule details](https://eslint.org/docs/latest/rules/prefer-const) +* [org.openrewrite.codemods.cleanup.javascript.PreferDateNow](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferdatenow): Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-date-now.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferDefaultParameters](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferdefaultparameters): Prefer default parameters over reassignment.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-default-parameters.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferDestructuring](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferdestructuring): Require destructuring from arrays and/or objects
See [rule details](https://eslint.org/docs/latest/rules/prefer-destructuring) +* [org.openrewrite.codemods.cleanup.javascript.PreferDomNodeAppend](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferdomnodeappend): Prefer `Node#append()` over `Node#appendChild()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-append.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferDomNodeDataset](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferdomnodedataset): Prefer using `.dataset` on DOM elements over calling attribute methods.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-dataset.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferDomNodeRemove](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferdomnoderemove): Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-remove.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferExponentiationOperator](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferexponentiationoperator): Disallow the use of `Math.pow` in favor of the ** operator
See [rule details](https://eslint.org/docs/latest/rules/prefer-exponentiation-operator) +* [org.openrewrite.codemods.cleanup.javascript.PreferExportFrom](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferexportfrom): Prefer `export…from` when re-exporting.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferIncludes](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferincludes): Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-includes.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferJsonParseBuffer](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferjsonparsebuffer): Prefer reading a JSON file as a buffer.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-json-parse-buffer.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferKeyboardEventKey](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferkeyboardeventkey): Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-keyboard-event-key.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferMathTrunc](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefermathtrunc): Enforce the use of `Math.trunc()` instead of bitwise operators.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-trunc.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferModernDomApis](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefermoderndomapis): Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-dom-apis.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferModernMathApis](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefermodernmathapis): Prefer modern Math APIs over legacy patterns.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferModule](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefermodule): Prefer JavaScript modules (ESM) over CommonJS.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-module.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferNativeCoercionFunctions](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefernativecoercionfunctions): Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-native-coercion-functions.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferNegativeIndex](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefernegativeindex): Prefer negative index over `.length - index` when possible.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-negative-index.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferNodeProtocol](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefernodeprotocol): Prefer using the `node:` protocol when importing Node.js builtin modules.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferNumberProperties](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefernumberproperties): Prefer `Number` static properties over global ones.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-number-properties.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferNumericLiterals](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefernumericliterals): Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals
See [rule details](https://eslint.org/docs/latest/rules/prefer-numeric-literals) +* [org.openrewrite.codemods.cleanup.javascript.PreferObjectFromEntries](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferobjectfromentries): Prefer using `Object.fromEntries()` to transform a list of key-value pairs into an object.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-from-entries.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferObjectHasOwn](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferobjecthasown): Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn(`)
See [rule details](https://eslint.org/docs/latest/rules/prefer-object-has-own) +* [org.openrewrite.codemods.cleanup.javascript.PreferObjectSpread](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferobjectspread): Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead
See [rule details](https://eslint.org/docs/latest/rules/prefer-object-spread) +* [org.openrewrite.codemods.cleanup.javascript.PreferOptionalCatchBinding](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferoptionalcatchbinding): Prefer omitting the catch binding parameter.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-optional-catch-binding.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferPrototypeMethods](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferprototypemethods): Prefer borrowing methods from the prototype instead of the instance.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferQuerySelector](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferqueryselector): Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-query-selector.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferReflectApply](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferreflectapply): Prefer `Reflect.apply()` over `Function#apply()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-reflect-apply.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferRegexpTest](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferregexptest): Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-regexp-test.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferSetHas](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefersethas): Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-has.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferSetSize](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefersetsize): Prefer using `Set#size` instead of `Array#length`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferSpread](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferspread): Prefer the spread operator over `Array.from()`, `Array#concat()`, `Array#{slice,toSpliced}()` and `String#split('')`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-spread.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferStringReplaceAll](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferstringreplaceall): Prefer `String#replaceAll()` over regex searches with the global flag.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-replace-all.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferStringSlice](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferstringslice): Prefer `String#slice()` over `String#substr()` and `String#substring()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-slice.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferStringStartsEndsWith](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferstringstartsendswith): Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-starts-ends-with.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferStringTrimStartEnd](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferstringtrimstartend): Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-trim-start-end.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferSwitch](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferswitch): Prefer `switch` over multiple `else-if`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-switch.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferTemplate](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefertemplate): Require template literals instead of string concatenation
See [rule details](https://eslint.org/docs/latest/rules/prefer-template) +* [org.openrewrite.codemods.cleanup.javascript.PreferTernary](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preferternary): Prefer ternary expressions over simple `if-else` statements.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-ternary.md) +* [org.openrewrite.codemods.cleanup.javascript.PreferTypeError](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/prefertypeerror): Enforce throwing `TypeError` in type checking conditions.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-type-error.md) +* [org.openrewrite.codemods.cleanup.javascript.PreventAbbreviations](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/preventabbreviations): Prevent abbreviations.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prevent-abbreviations.md) +* [org.openrewrite.codemods.cleanup.javascript.RelativeUrlStyle](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/relativeurlstyle): Enforce consistent relative URL style.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/relative-url-style.md) +* [org.openrewrite.codemods.cleanup.javascript.RequireArrayJoinSeparator](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/requirearrayjoinseparator): Enforce using the separator argument with `Array#join()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-array-join-separator.md) +* [org.openrewrite.codemods.cleanup.javascript.RequireNumberToFixedDigitsArgument](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/requirenumbertofixeddigitsargument): Enforce using the digits argument with `Number#toFixed()`.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-number-to-fixed-digits-argument.md) +* [org.openrewrite.codemods.cleanup.javascript.SortImports](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/sortimports): Enforce sorted import declarations within modules
See [rule details](https://eslint.org/docs/latest/rules/sort-imports) +* [org.openrewrite.codemods.cleanup.javascript.SortVars](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/sortvars): Require variables within the same declaration block to be sorted
See [rule details](https://eslint.org/docs/latest/rules/sort-vars) +* [org.openrewrite.codemods.cleanup.javascript.Strict](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/strict): Require or disallow strict mode directives
See [rule details](https://eslint.org/docs/latest/rules/strict) +* [org.openrewrite.codemods.cleanup.javascript.StringContent](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/stringcontent): Enforce better string content.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/string-content.md) +* [org.openrewrite.codemods.cleanup.javascript.SwitchCaseBraces](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/switchcasebraces): Enforce consistent brace style for case clauses.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md) +* [org.openrewrite.codemods.cleanup.javascript.TemplateIndent](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/templateindent): Fix whitespace-insensitive template indentation.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/template-indent.md) +* [org.openrewrite.codemods.cleanup.javascript.TextEncodingIdentifierCase](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/textencodingidentifiercase): Enforce consistent case for text encoding identifiers.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md) +* [org.openrewrite.codemods.cleanup.javascript.ThrowNewError](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/thrownewerror): Require `new` when throwing an error.
See [rule details](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/throw-new-error.md) +* [org.openrewrite.codemods.cleanup.javascript.UnicodeBom](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/unicodebom): Require or disallow Unicode byte order mark (BOM)
See [rule details](https://eslint.org/docs/latest/rules/unicode-bom) +* [org.openrewrite.codemods.cleanup.javascript.Yoda](https://docs.openrewrite.org/recipes/codemods/cleanup/javascript/yoda): Require or disallow "Yoda" conditions
See [rule details](https://eslint.org/docs/latest/rules/yoda) +* [org.openrewrite.codemods.cleanup.jest.ConsistentTestIt](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/consistenttestit): Enforce test and it usage conventions
See rule details for [jest/consistent-test-it](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/consistent-test-it.md) +* [org.openrewrite.codemods.cleanup.jest.NoAliasMethods](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/noaliasmethods): Disallow alias methods
See rule details for [jest/no-alias-methods](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/no-alias-methods.md) +* [org.openrewrite.codemods.cleanup.jest.NoDeprecatedFunctions27](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/nodeprecatedfunctions27): Disallow use of deprecated functions from before version 27
See rule details for [jest/no-deprecated-functions](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/no-deprecated-functions.md) +* [org.openrewrite.codemods.cleanup.jest.NoJasmineGlobals](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/nojasmineglobals): Disallow Jasmine globals
See rule details for [jest/no-jasmine-globals](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/no-jasmine-globals.md) +* [org.openrewrite.codemods.cleanup.jest.NoTestPrefixes](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/notestprefixes): Require using .only and .skip over f and x
See rule details for [jest/no-test-prefixes](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/no-test-prefixes.md) +* [org.openrewrite.codemods.cleanup.jest.NoUntypedMockFactory](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/nountypedmockfactory): Disallow using jest.mock() factories without an explicit type parameter
See rule details for [jest/no-untyped-mock-factory](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/no-untyped-mock-factory.md) +* [org.openrewrite.codemods.cleanup.jest.PreferComparisonMatcher](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/prefercomparisonmatcher): Suggest using the built-in comparison matchers
See rule details for [jest/prefer-comparison-matcher](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-comparison-matcher.md) +* [org.openrewrite.codemods.cleanup.jest.PreferExpectResolves](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/preferexpectresolves): Prefer await expect(...).resolves over expect(await ...) syntax
See rule details for [jest/prefer-expect-resolves](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-expect-resolves.md) +* [org.openrewrite.codemods.cleanup.jest.PreferLowercaseTitle](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/preferlowercasetitle): Enforce lowercase test names
See rule details for [jest/prefer-lowercase-title](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-lowercase-title.md) +* [org.openrewrite.codemods.cleanup.jest.PreferMockPromiseShorthand](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/prefermockpromiseshorthand): Prefer mock resolved/rejected shorthands for promises
See rule details for [jest/prefer-mock-promise-shorthand](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-mock-promise-shorthand.md) +* [org.openrewrite.codemods.cleanup.jest.PreferSpyOn](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/preferspyon): Suggest using jest.spyOn()
See rule details for [jest/prefer-spy-on](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-spy-on.md) +* [org.openrewrite.codemods.cleanup.jest.PreferToBe](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/prefertobe): Suggest using toBe() for primitive literals
See rule details for [jest/prefer-to-be](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-to-be.md) +* [org.openrewrite.codemods.cleanup.jest.PreferToContain](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/prefertocontain): Suggest using toContain()
See rule details for [jest/prefer-to-contain](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-to-contain.md) +* [org.openrewrite.codemods.cleanup.jest.PreferToHaveLength](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/prefertohavelength): Suggest using toHaveLength()
See rule details for [jest/prefer-to-have-length](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-to-have-length.md) +* [org.openrewrite.codemods.cleanup.jest.PreferTodo](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/prefertodo): Suggest using test.todo
See rule details for [jest/prefer-todo](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-todo.md) +* [org.openrewrite.codemods.cleanup.jest.RecommendedJestCodeCleanup](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/recommendedjestcodecleanup): Collection of cleanup ESLint rules that are recommended by [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest). +* [org.openrewrite.codemods.cleanup.jest.ValidTitle](https://docs.openrewrite.org/recipes/codemods/cleanup/jest/validtitle): Enforce valid titles
See rule details for [jest/valid-title](https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/valid-title.md) +* [org.openrewrite.codemods.cleanup.react.DestructuringAssignment](https://docs.openrewrite.org/recipes/codemods/cleanup/react/destructuringassignment): Enforce consistent usage of destructuring assignment of props, state, and context
See rule details for [react/destructuring-assignment](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/destructuring-assignment.md) +* [org.openrewrite.codemods.cleanup.react.FunctionComponentDefinition](https://docs.openrewrite.org/recipes/codemods/cleanup/react/functioncomponentdefinition): Enforce a specific function type for function components
See rule details for [react/function-component-definition](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/function-component-definition.md) +* [org.openrewrite.codemods.cleanup.react.JsxBooleanValue](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxbooleanvalue): Enforce boolean attributes notation in JSX
See rule details for [react/jsx-boolean-value](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-boolean-value.md) +* [org.openrewrite.codemods.cleanup.react.JsxClosingBracketLocation](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxclosingbracketlocation): Enforce closing bracket location in JSX
See rule details for [react/jsx-closing-bracket-location](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-closing-bracket-location.md) +* [org.openrewrite.codemods.cleanup.react.JsxClosingTagLocation](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxclosingtaglocation): Enforce closing tag location for multiline JSX
See rule details for [react/jsx-closing-tag-location](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-closing-tag-location.md) +* [org.openrewrite.codemods.cleanup.react.JsxCurlyBracePresence](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxcurlybracepresence): Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
See rule details for [react/jsx-curly-brace-presence](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-curly-brace-presence.md) +* [org.openrewrite.codemods.cleanup.react.JsxCurlyNewline](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxcurlynewline): Enforce consistent linebreaks in curly braces in JSX attributes and expressions
See rule details for [react/jsx-curly-newline](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-curly-newline.md) +* [org.openrewrite.codemods.cleanup.react.JsxCurlySpacing](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxcurlyspacing): Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
See rule details for [react/jsx-curly-spacing](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-curly-spacing.md) +* [org.openrewrite.codemods.cleanup.react.JsxEqualsSpacing](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxequalsspacing): Enforce or disallow spaces around equal signs in JSX attributes
See rule details for [react/jsx-equals-spacing](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-equals-spacing.md) +* [org.openrewrite.codemods.cleanup.react.JsxFirstPropNewLine](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxfirstpropnewline): Enforce proper position of the first property in JSX
See rule details for [react/jsx-first-prop-new-line](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-first-prop-new-line.md) +* [org.openrewrite.codemods.cleanup.react.JsxFragments](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxfragments): Enforce shorthand or standard form for React fragments
See rule details for [react/jsx-fragments](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-fragments.md) +* [org.openrewrite.codemods.cleanup.react.JsxIndent](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxindent): Enforce JSX indentation
See rule details for [react/jsx-indent](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-indent.md) +* [org.openrewrite.codemods.cleanup.react.JsxIndentProps](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxindentprops): Enforce props indentation in JSX
See rule details for [react/jsx-indent-props](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-indent-props.md) +* [org.openrewrite.codemods.cleanup.react.JsxMaxPropsPerLine](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxmaxpropsperline): Enforce maximum of props on a single line in JSX
See rule details for [react/jsx-max-props-per-line](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-max-props-per-line.md) +* [org.openrewrite.codemods.cleanup.react.JsxNewline](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxnewline): Require or prevent a new line after jsx elements and expressions
See rule details for [react/jsx-newline](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-newline.md) +* [org.openrewrite.codemods.cleanup.react.JsxNoLeakedRender](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxnoleakedrender): Disallow problematic leaked values from being rendered
See rule details for [react/jsx-no-leaked-render](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-no-leaked-render.md) +* [org.openrewrite.codemods.cleanup.react.JsxNoTargetBlank](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxnotargetblank): Disallow target="_blank" attribute without rel="noreferrer"
See rule details for [react/jsx-no-target-blank](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-no-target-blank.md) +* [org.openrewrite.codemods.cleanup.react.JsxNoUselessFragment](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxnouselessfragment): Disallow unnecessary fragments
See rule details for [react/jsx-no-useless-fragment](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-no-useless-fragment.md) +* [org.openrewrite.codemods.cleanup.react.JsxOneExpressionPerLine](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxoneexpressionperline): Require one JSX element per line
See rule details for [react/jsx-one-expression-per-line](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-one-expression-per-line.md) +* [org.openrewrite.codemods.cleanup.react.JsxPropsNoMultiSpaces](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxpropsnomultispaces): Disallow multiple spaces between inline JSX props
See rule details for [react/jsx-props-no-multi-spaces](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-props-no-multi-spaces.md) +* [org.openrewrite.codemods.cleanup.react.JsxSortProps](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxsortprops): Enforce props alphabetical sorting
See rule details for [react/jsx-sort-props](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-sort-props.md) +* [org.openrewrite.codemods.cleanup.react.JsxSpaceBeforeClosing](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxspacebeforeclosing): Enforce spacing before closing bracket in JSX
See rule details for [react/jsx-space-before-closing](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-space-before-closing.md) +* [org.openrewrite.codemods.cleanup.react.JsxTagSpacing](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxtagspacing): Enforce whitespace in and around the JSX opening and closing brackets
See rule details for [react/jsx-tag-spacing](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-tag-spacing.md) +* [org.openrewrite.codemods.cleanup.react.JsxWrapMultilines](https://docs.openrewrite.org/recipes/codemods/cleanup/react/jsxwrapmultilines): Disallow missing parentheses around multiline JSX
See rule details for [react/jsx-wrap-multilines](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-wrap-multilines.md) +* [org.openrewrite.codemods.cleanup.react.NoArrowFunctionLifecycle](https://docs.openrewrite.org/recipes/codemods/cleanup/react/noarrowfunctionlifecycle): Lifecycle methods should be methods on the prototype, not class fields
See rule details for [react/no-arrow-function-lifecycle](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/no-arrow-function-lifecycle.md) +* [org.openrewrite.codemods.cleanup.react.NoUnknownProperty](https://docs.openrewrite.org/recipes/codemods/cleanup/react/nounknownproperty): Disallow usage of unknown DOM property
See rule details for [react/no-unknown-property](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/no-unknown-property.md) +* [org.openrewrite.codemods.cleanup.react.PreferReadOnlyProps](https://docs.openrewrite.org/recipes/codemods/cleanup/react/preferreadonlyprops): Enforce that props are read-only
See rule details for [react/prefer-read-only-props](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/prefer-read-only-props.md) +* [org.openrewrite.codemods.cleanup.react.SelfClosingComp](https://docs.openrewrite.org/recipes/codemods/cleanup/react/selfclosingcomp): Disallow extra closing tags for components without children
See rule details for [react/self-closing-comp](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/self-closing-comp.md) +* [org.openrewrite.codemods.cleanup.react.SortPropTypes](https://docs.openrewrite.org/recipes/codemods/cleanup/react/sortproptypes): Enforce propTypes declarations alphabetical sorting
See rule details for [react/sort-prop-types](https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/sort-prop-types.md) +* [org.openrewrite.codemods.cleanup.storybook.AwaitInteractions](https://docs.openrewrite.org/recipes/codemods/cleanup/storybook/awaitinteractions): Interactions should be awaited
See rule details for [storybook/await-interactions](https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/await-interactions.md) +* [org.openrewrite.codemods.cleanup.storybook.DefaultExports](https://docs.openrewrite.org/recipes/codemods/cleanup/storybook/defaultexports): Story files should have a default export
See rule details for [storybook/default-exports](https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/default-exports.md) +* [org.openrewrite.codemods.cleanup.storybook.HierarchySeparator](https://docs.openrewrite.org/recipes/codemods/cleanup/storybook/hierarchyseparator): Deprecated hierarchy separator in title property
See rule details for [storybook/hierarchy-separator](https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/hierarchy-separator.md) +* [org.openrewrite.codemods.cleanup.storybook.NoRedundantStoryName](https://docs.openrewrite.org/recipes/codemods/cleanup/storybook/noredundantstoryname): A story should not have a redundant name property
See rule details for [storybook/no-redundant-story-name](https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/no-redundant-story-name.md) +* [org.openrewrite.codemods.cleanup.storybook.NoTitlePropertyInMeta](https://docs.openrewrite.org/recipes/codemods/cleanup/storybook/notitlepropertyinmeta): Do not define a title in meta
See rule details for [storybook/no-title-property-in-meta](https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/no-title-property-in-meta.md) +* [org.openrewrite.codemods.cleanup.storybook.PreferPascalCase](https://docs.openrewrite.org/recipes/codemods/cleanup/storybook/preferpascalcase): Stories should use PascalCase
See rule details for [storybook/prefer-pascal-case](https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/prefer-pascal-case.md) +* [org.openrewrite.codemods.cleanup.storybook.RecommendedStorybookCodeCleanup](https://docs.openrewrite.org/recipes/codemods/cleanup/storybook/recommendedstorybookcodecleanup): Collection of cleanup ESLint rules from [eslint-plugin-storybook](https://github.com/storybookjs/eslint-plugin-storybook#readme). +* [org.openrewrite.codemods.cleanup.storybook.UseStorybookExpect](https://docs.openrewrite.org/recipes/codemods/cleanup/storybook/usestorybookexpect): Use expect from @storybook/jest
See rule details for [storybook/use-storybook-expect](https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/use-storybook-expect.md) +* [org.openrewrite.codemods.cleanup.storybook.UseStorybookTestingLibrary](https://docs.openrewrite.org/recipes/codemods/cleanup/storybook/usestorybooktestinglibrary): Do not use testing-library directly on stories
See rule details for [storybook/use-storybook-testing-library](https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/use-storybook-testing-library.md) +* [org.openrewrite.codemods.cleanup.svelte.FirstAttributeLinebreak](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/firstattributelinebreak): enforce the location of first attribute
See rule details for [svelte/first-attribute-linebreak](https://sveltejs.github.io/eslint-plugin-svelte/rules/first-attribute-linebreak/) +* [org.openrewrite.codemods.cleanup.svelte.HtmlClosingBracketSpacing](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/htmlclosingbracketspacing): require or disallow a space before tag's closing brackets
See rule details for [svelte/html-closing-bracket-spacing](https://sveltejs.github.io/eslint-plugin-svelte/rules/html-closing-bracket-spacing/) +* [org.openrewrite.codemods.cleanup.svelte.HtmlQuotes](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/htmlquotes): enforce quotes style of HTML attributes
See rule details for [svelte/html-quotes](https://sveltejs.github.io/eslint-plugin-svelte/rules/html-quotes/) +* [org.openrewrite.codemods.cleanup.svelte.HtmlSelfClosing](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/htmlselfclosing): enforce self-closing style
See rule details for [svelte/html-self-closing](https://sveltejs.github.io/eslint-plugin-svelte/rules/html-self-closing/) +* [org.openrewrite.codemods.cleanup.svelte.Indent](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/indent): enforce consistent indentation
See rule details for [svelte/indent](https://sveltejs.github.io/eslint-plugin-svelte/rules/indent/) +* [org.openrewrite.codemods.cleanup.svelte.MaxAttributesPerLine](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/maxattributesperline): enforce the maximum number of attributes per line
See rule details for [svelte/max-attributes-per-line](https://sveltejs.github.io/eslint-plugin-svelte/rules/max-attributes-per-line/) +* [org.openrewrite.codemods.cleanup.svelte.MustacheSpacing](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/mustachespacing): enforce unified spacing in mustache
See rule details for [svelte/mustache-spacing](https://sveltejs.github.io/eslint-plugin-svelte/rules/mustache-spacing/) +* [org.openrewrite.codemods.cleanup.svelte.NoDynamicSlotName](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/nodynamicslotname): disallow dynamic slot name
See rule details for [svelte/no-dynamic-slot-name](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dynamic-slot-name/) +* [org.openrewrite.codemods.cleanup.svelte.NoSpacesAroundEqualSignsInAttribute](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/nospacesaroundequalsignsinattribute): disallow spaces around equal signs in attribute
See rule details for [svelte/no-spaces-around-equal-signs-in-attribute](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-spaces-around-equal-signs-in-attribute/) +* [org.openrewrite.codemods.cleanup.svelte.NoUselessMustaches](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/nouselessmustaches): disallow unnecessary mustache interpolations
See rule details for [svelte/no-useless-mustaches](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/) +* [org.openrewrite.codemods.cleanup.svelte.PreferClassDirective](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/preferclassdirective): require class directives instead of ternary expressions
See rule details for [svelte/prefer-class-directive](https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-class-directive/) +* [org.openrewrite.codemods.cleanup.svelte.PreferStyleDirective](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/preferstyledirective): require style directives instead of style attribute
See rule details for [svelte/prefer-style-directive](https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-style-directive/) +* [org.openrewrite.codemods.cleanup.svelte.RecommendedsvelteCodeCleanup](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/recommendedsveltecodecleanup): Collection of cleanup ESLint rules from [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte). +* [org.openrewrite.codemods.cleanup.svelte.RequireStoreReactiveAccess](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/requirestorereactiveaccess): disallow to use of the store itself as an operand. Need to use $ prefix or get function.
See rule details for [svelte/require-store-reactive-access](https://sveltejs.github.io/eslint-plugin-svelte/rules/require-store-reactive-access/) +* [org.openrewrite.codemods.cleanup.svelte.ShorthandAttribute](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/shorthandattribute): enforce use of shorthand syntax in attribute
See rule details for [svelte/shorthand-attribute](https://sveltejs.github.io/eslint-plugin-svelte/rules/shorthand-attribute/) +* [org.openrewrite.codemods.cleanup.svelte.ShorthandDirective](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/shorthanddirective): enforce use of shorthand syntax in directives
See rule details for [svelte/shorthand-directive](https://sveltejs.github.io/eslint-plugin-svelte/rules/shorthand-directive/) +* [org.openrewrite.codemods.cleanup.svelte.SortAttributes](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/sortattributes): enforce order of attributes
See rule details for [svelte/sort-attributes](https://sveltejs.github.io/eslint-plugin-svelte/rules/sort-attributes/) +* [org.openrewrite.codemods.cleanup.svelte.SpacedHtmlComment](https://docs.openrewrite.org/recipes/codemods/cleanup/svelte/spacedhtmlcomment): enforce consistent spacing after the in a HTML comment
See rule details for [svelte/spaced-html-comment](https://sveltejs.github.io/eslint-plugin-svelte/rules/spaced-html-comment/) +* [org.openrewrite.codemods.cleanup.vue.ArrayBracketNewline](https://docs.openrewrite.org/recipes/codemods/cleanup/vue/arraybracketnewline): Enforce linebreaks after opening and before closing array brackets in