From e221783a1d541443e7e80efdbe1945e4c0a7cdf1 Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Wed, 18 Dec 2024 12:05:49 -0800 Subject: [PATCH] Sort moderne recipes --- docs/reference/moderne-recipes.md | 1208 ++++++++++++++--------------- 1 file changed, 604 insertions(+), 604 deletions(-) diff --git a/docs/reference/moderne-recipes.md b/docs/reference/moderne-recipes.md index 3d55742854..f31e41e73a 100644 --- a/docs/reference/moderne-recipes.md +++ b/docs/reference/moderne-recipes.md @@ -3,32 +3,32 @@ ## rewrite-ai-search * [Find comments' language distribution](../recipes/ai/findcommentslanguage) -* [List all methods used](../recipes/ai/listallmethodsused) +* [Find method invocations that resemble a pattern](../recipes/ai/research/findcodethatresembles) +* [Fix mis-encoded French comments, javadocs and pom.xml comments](../recipes/ai/fixmisencodedcommentsinfrench) * [Fix mis-encoded comments in French](../recipes/ai/spellcheckcommentsinfrench) * [Fix mis-encoded comments in French in pom.xml files](../recipes/ai/spellcheckcommentsinfrenchpomxml) * [Get embeddings for code snippets in code](../recipes/ai/research/getcodeembedding) -* [Find method invocations that resemble a pattern](../recipes/ai/research/findcodethatresembles) * [Get recommendations](../recipes/ai/research/getrecommendations) -* [Fix mis-encoded French comments, javadocs and pom.xml comments](../recipes/ai/fixmisencodedcommentsinfrench) +* [List all methods used](../recipes/ai/listallmethodsused) ## rewrite-android * [Change Android SDK version](../recipes/android/changeandroidsdkversion) -* [Upgrade Android Gradle Plugin (AGP) version](../recipes/android/upgradeandroidgradlepluginversion) -* [Migrate to Android Gradle Plugin 8.7](../recipes/android/migratetoandroidgradleplugin_8_7) -* [Upgrade to Android SDK 33](../recipes/android/upgradetoandroidsdk33) -* [Migrate to Android Gradle Plugin 7.4](../recipes/android/migratetoandroidgradleplugin_7_4) -* [Migrate to Android Gradle Plugin 8.6](../recipes/android/migratetoandroidgradleplugin_8_6) * [Migrate to Android Gradle Plugin 7.2](../recipes/android/migratetoandroidgradleplugin_7_2) -* [Upgrade to Android SDK 35](../recipes/android/upgradetoandroidsdk35) +* [Migrate to Android Gradle Plugin 7.3](../recipes/android/migratetoandroidgradleplugin_7_3) +* [Migrate to Android Gradle Plugin 7.4](../recipes/android/migratetoandroidgradleplugin_7_4) +* [Migrate to Android Gradle Plugin 8.0](../recipes/android/migratetoandroidgradleplugin_8_0) +* [Migrate to Android Gradle Plugin 8.1](../recipes/android/migratetoandroidgradleplugin_8_1) * [Migrate to Android Gradle Plugin 8.2](../recipes/android/migratetoandroidgradleplugin_8_2) -* [Migrate to Android Gradle Plugin 8.4](../recipes/android/migratetoandroidgradleplugin_8_4) * [Migrate to Android Gradle Plugin 8.3](../recipes/android/migratetoandroidgradleplugin_8_3) +* [Migrate to Android Gradle Plugin 8.4](../recipes/android/migratetoandroidgradleplugin_8_4) * [Migrate to Android Gradle Plugin 8.5](../recipes/android/migratetoandroidgradleplugin_8_5) -* [Migrate to Android Gradle Plugin 7.3](../recipes/android/migratetoandroidgradleplugin_7_3) +* [Migrate to Android Gradle Plugin 8.6](../recipes/android/migratetoandroidgradleplugin_8_6) +* [Migrate to Android Gradle Plugin 8.7](../recipes/android/migratetoandroidgradleplugin_8_7) +* [Upgrade Android Gradle Plugin (AGP) version](../recipes/android/upgradeandroidgradlepluginversion) +* [Upgrade to Android SDK 33](../recipes/android/upgradetoandroidsdk33) * [Upgrade to Android SDK 34](../recipes/android/upgradetoandroidsdk34) -* [Migrate to Android Gradle Plugin 8.1](../recipes/android/migratetoandroidgradleplugin_8_1) -* [Migrate to Android Gradle Plugin 8.0](../recipes/android/migratetoandroidgradleplugin_8_0) +* [Upgrade to Android SDK 35](../recipes/android/upgradetoandroidsdk35) ## rewrite-circleci @@ -37,479 +37,479 @@ ## rewrite-codemods +* [A story should not have a redundant name property](../recipes/codemods/cleanup/storybook/noredundantstoryname) +* [Add React imports](../recipes/codemods/migrate/nextjs/v10/addmissingreactimport) +* [Adds `DefaultTheme` module augmentation to typescript projects.](../recipes/codemods/migrate/mui/themeaugment) * [Applies a codemod to all source files](../recipes/codemods/applycodemod) -* [Lint source code with ESLint](../recipes/codemods/eslint) -* [Run Putout](../recipes/codemods/putout) -* [Lint TypeScript code using ESLint](../recipes/codemods/ecmascript/eslinttypescriptdefaults) -* [Format TypeScript using ESLint Prettier plugin](../recipes/codemods/ecmascript/eslinttypescriptprettier) -* [Transform CommonJS style `require()` calls to ES6 `import` statements](../recipes/codemods/ecmascript/5to6/cjstoesm) -* [Transform AMD style `define()` calls to ES6 `import` statements](../recipes/codemods/ecmascript/5to6/amdtoesm) -* [Remove "use strict" directives](../recipes/codemods/ecmascript/5to6/nostrict) -* [Generate named exports from CommonJS modules](../recipes/codemods/ecmascript/5to6/namedexportgeneration) +* [Combination of all deprecations](../recipes/codemods/migrate/mui/all) * [Convert `var` to `let`](../recipes/codemods/ecmascript/5to6/vartolet) -* [Replace all function expressions with only `return` statement with simple arrow](../recipes/codemods/ecmascript/5to6/simplearrow) -* [Upgrade ECMAScript 5 to ECMAScript 6](../recipes/codemods/ecmascript/5to6/ecmascript6bestpractices) -* [Next.js Codemods for API Updates](../recipes/codemods/migrate/nextjs/nextjscodemods) -* [Use `withRouter`](../recipes/codemods/migrate/nextjs/v6/urltowithrouter) -* [Transform AMP HOC into page config](../recipes/codemods/migrate/nextjs/v8/withamptoconfig) -* [Transform Anonymous Components into Named Components](../recipes/codemods/migrate/nextjs/v9/namedefaultcomponent) -* [Add React imports](../recipes/codemods/migrate/nextjs/v10/addmissingreactimport) -* [Rename Next Image Imports](../recipes/codemods/migrate/nextjs/v11/cratonext) -* [Rename Next Image Imports](../recipes/codemods/migrate/nextjs/v13_0/nextimagetolegacyimage) -* [Migrate to the New Image Component](../recipes/codemods/migrate/nextjs/v13_0/nextimageexperimental) -* [Remove `` Tags From Link Components](../recipes/codemods/migrate/nextjs/v13_0/newlink) -* [Use Built-in Font](../recipes/codemods/migrate/nextjs/v13_2/builtinnextfont) -* [Migrate `ImageResponse` imports](../recipes/codemods/migrate/nextjs/v14_0/nextogimport) -* [Use `viewport` export](../recipes/codemods/migrate/nextjs/v14_0/useviewportexport) -* [Recommended Jest code cleanup](../recipes/codemods/cleanup/jest/recommendedjestcodecleanup) -* [Disallow use of deprecated functions from before version 27](../recipes/codemods/cleanup/jest/nodeprecatedfunctions27) -* [Enforce test and it usage conventions](../recipes/codemods/cleanup/jest/consistenttestit) -* [Disallow alias methods](../recipes/codemods/cleanup/jest/noaliasmethods) +* [Converts ExpansionPanel to use ExpansionPanel component](../recipes/codemods/migrate/mui/expansionpanelcomponent) +* [Converts GridList to use Grid component](../recipes/codemods/migrate/mui/gridlistcomponent) +* [Converts JSS styles to styled-components](../recipes/codemods/migrate/mui/jsstostyled) +* [Converts JSS to TypeScript in React components](../recipes/codemods/migrate/mui/jsstotssreact) +* [Converts `rootRef` to `ref`](../recipes/codemods/migrate/mui/rootref) +* [Converts `sx` prop to `sx` style prop](../recipes/codemods/migrate/mui/boxsxprop) +* [Converts all `@mui/material` submodule imports to the root module](../recipes/codemods/migrate/mui/toplevelimports) +* [Converts base imports to use React hooks](../recipes/codemods/migrate/mui/basehookimports) +* [Converts components to use the v4 adapter module](../recipes/codemods/migrate/mui/adapterv) +* [Deprecated hierarchy separator in title property](../recipes/codemods/cleanup/storybook/hierarchyseparator) * [Disallow Jasmine globals](../recipes/codemods/cleanup/jest/nojasmineglobals) -* [Require using .only and .skip over f and x](../recipes/codemods/cleanup/jest/notestprefixes) -* [Disallow using jest.mock() factories without an explicit type parameter](../recipes/codemods/cleanup/jest/nountypedmockfactory) -* [Suggest using the built-in comparison matchers](../recipes/codemods/cleanup/jest/prefercomparisonmatcher) -* [Prefer await expect(...).resolves over expect(await ...) syntax](../recipes/codemods/cleanup/jest/preferexpectresolves) -* [Enforce lowercase test names](../recipes/codemods/cleanup/jest/preferlowercasetitle) -* [Prefer mock resolved/rejected shorthands for promises](../recipes/codemods/cleanup/jest/prefermockpromiseshorthand) -* [Suggest using jest.spyOn()](../recipes/codemods/cleanup/jest/preferspyon) -* [Suggest using toBe() for primitive literals](../recipes/codemods/cleanup/jest/prefertobe) -* [Suggest using toContain()](../recipes/codemods/cleanup/jest/prefertocontain) -* [Suggest using toHaveLength()](../recipes/codemods/cleanup/jest/prefertohavelength) -* [Suggest using test.todo](../recipes/codemods/cleanup/jest/prefertodo) -* [Enforce valid titles](../recipes/codemods/cleanup/jest/validtitle) -* [Require braces around arrow function bodies](../recipes/codemods/cleanup/javascript/arrowbodystyle) -* [Enforce or disallow capitalization of the first letter of a comment](../recipes/codemods/cleanup/javascript/capitalizedcomments) -* [Enforce consistent brace style for all control statements](../recipes/codemods/cleanup/javascript/curly) -* [Enforce dot notation whenever possible](../recipes/codemods/cleanup/javascript/dotnotation) -* [Require the use of `===` and `!==`](../recipes/codemods/cleanup/javascript/eqeqeq) -* [Require or disallow logical assignment operator shorthand](../recipes/codemods/cleanup/javascript/logicalassignmentoperators) -* [Enforce a particular style for multiline comments](../recipes/codemods/cleanup/javascript/multilinecommentstyle) -* [Disallow equal signs explicitly at the beginning of regular expressions](../recipes/codemods/cleanup/javascript/nodivregex) +* [Disallow `new Array()`.](../recipes/codemods/cleanup/javascript/nonewarray) +* [Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals](../recipes/codemods/cleanup/javascript/prefernumericliterals) +* [Disallow alias methods](../recipes/codemods/cleanup/jest/noaliasmethods) +* [Disallow arrow functions where they could be confused with comparisons](../recipes/codemods/format/noconfusingarrow) +* [Disallow awaiting non-promise values.](../recipes/codemods/cleanup/javascript/nounnecessaryawait) +* [Disallow classes that only have static members.](../recipes/codemods/cleanup/javascript/nostaticonlyclass) +* [Disallow comparing `undefined` using `typeof`.](../recipes/codemods/cleanup/javascript/notypeofundefined) * [Disallow else blocks after return statements in if statements](../recipes/codemods/cleanup/javascript/noelsereturn) -* [Disallow unnecessary calls to `.bind()`](../recipes/codemods/cleanup/javascript/noextrabind) -* [Disallow unnecessary labels](../recipes/codemods/cleanup/javascript/noextralabel) -* [Disallow shorthand type conversions](../recipes/codemods/cleanup/javascript/noimplicitcoercion) +* [Disallow equal signs explicitly at the beginning of regular expressions](../recipes/codemods/cleanup/javascript/nodivregex) +* [Disallow extra closing tags for components without children](../recipes/codemods/format/jsxselfclosingcomp) +* [Disallow extra closing tags for components without children](../recipes/codemods/cleanup/react/selfclosingcomp) * [Disallow if statements as the only statement in else blocks](../recipes/codemods/cleanup/javascript/nolonelyif) * [Disallow initializing variables to undefined](../recipes/codemods/cleanup/javascript/noundefinit) -* [Disallow ternary operators when simpler alternatives exist](../recipes/codemods/cleanup/javascript/nounneededternary) -* [Disallow unnecessary computed property keys in objects and classes](../recipes/codemods/cleanup/javascript/nouselesscomputedkey) -* [Disallow renaming import, export, and destructured assignments to the same name](../recipes/codemods/cleanup/javascript/nouselessrename) -* [Disallow redundant return statements](../recipes/codemods/cleanup/javascript/nouselessreturn) -* [Require `let` or `const` instead of `var`](../recipes/codemods/cleanup/javascript/novar) -* [Require or disallow method and property shorthand syntax for object literals](../recipes/codemods/cleanup/javascript/objectshorthand) -* [Enforce variables to be declared either together or separately in functions](../recipes/codemods/cleanup/javascript/onevar) -* [Require or disallow assignment operator shorthand where possible](../recipes/codemods/cleanup/javascript/operatorassignment) -* [Require using arrow functions for callbacks](../recipes/codemods/cleanup/javascript/preferarrowcallback) -* [Require const declarations for variables that are never reassigned after declared](../recipes/codemods/cleanup/javascript/preferconst) -* [Require destructuring from arrays and/or objects](../recipes/codemods/cleanup/javascript/preferdestructuring) -* [Disallow the use of `Math.pow` in favor of the ** operator](../recipes/codemods/cleanup/javascript/preferexponentiationoperator) -* [Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals](../recipes/codemods/cleanup/javascript/prefernumericliterals) -* [Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn(`)](../recipes/codemods/cleanup/javascript/preferobjecthasown) -* [Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead](../recipes/codemods/cleanup/javascript/preferobjectspread) -* [Require template literals instead of string concatenation](../recipes/codemods/cleanup/javascript/prefertemplate) -* [Enforce sorted import declarations within modules](../recipes/codemods/cleanup/javascript/sortimports) -* [Require variables within the same declaration block to be sorted](../recipes/codemods/cleanup/javascript/sortvars) -* [Require or disallow strict mode directives](../recipes/codemods/cleanup/javascript/strict) -* [Require or disallow "Yoda" conditions](../recipes/codemods/cleanup/javascript/yoda) -* [Require or disallow Unicode byte order mark (BOM)](../recipes/codemods/cleanup/javascript/unicodebom) -* [React class component to function component](../recipes/codemods/migrate/react/classcomponenttofunctioncomponent) -* [Improve regexes by making them shorter, consistent, and safer.](../recipes/codemods/cleanup/javascript/betterregex) -* [Enforce a specific parameter name in catch clauses.](../recipes/codemods/cleanup/javascript/catcherrorname) -* [Use destructured variables over properties.](../recipes/codemods/cleanup/javascript/consistentdestructuring) -* [Enforce correct `Error` subclassing.](../recipes/codemods/cleanup/javascript/customerrordefinition) -* [Enforce no spaces between braces.](../recipes/codemods/cleanup/javascript/emptybracespaces) -* [Require escape sequences to use uppercase values.](../recipes/codemods/cleanup/javascript/escapecase) -* [Enforce explicitly comparing the length or size property of a value.](../recipes/codemods/cleanup/javascript/explicitlengthcheck) -* [Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol`, and `BigInt`.](../recipes/codemods/cleanup/javascript/newforbuiltins) -* [Prefer `for…of` over the `forEach` method.](../recipes/codemods/cleanup/javascript/noarrayforeach) -* [Disallow using the `this` argument in array methods.](../recipes/codemods/cleanup/javascript/noarraymethodthisargument) -* [Enforce combining multiple `Array#push()` into one call.](../recipes/codemods/cleanup/javascript/noarraypushpush) +* [Disallow leading or trailing decimal points in numeric literals](../recipes/codemods/format/nofloatingdecimal) * [Disallow member access from `await` expression.](../recipes/codemods/cleanup/javascript/noawaitexpressionmember) -* [Do not use leading/trailing space between `console.log` parameters.](../recipes/codemods/cleanup/javascript/noconsolespaces) -* [Do not use a `for` loop that can be replaced with a `for-of` loop.](../recipes/codemods/cleanup/javascript/noforloop) -* [Enforce the use of Unicode escapes instead of hexadecimal escapes.](../recipes/codemods/cleanup/javascript/nohexescape) -* [Require `Array.isArray()` instead of `instanceof Array`.](../recipes/codemods/cleanup/javascript/noinstanceofarray) +* [Disallow missing parentheses around multiline JSX](../recipes/codemods/format/jsxwrapmultilines) +* [Disallow missing parentheses around multiline JSX](../recipes/codemods/cleanup/react/jsxwrapmultilines) +* [Disallow multiple empty lines](../recipes/codemods/format/nomultipleemptylines) +* [Disallow multiple spaces](../recipes/codemods/format/nomultispaces) +* [Disallow multiple spaces between inline JSX props](../recipes/codemods/format/jsxpropsnomultispaces) +* [Disallow multiple spaces between inline JSX props](../recipes/codemods/cleanup/react/jsxpropsnomultispaces) * [Disallow negated conditions.](../recipes/codemods/cleanup/javascript/nonegatedcondition) * [Disallow nested ternary expressions.](../recipes/codemods/cleanup/javascript/nonestedternary) -* [Disallow `new Array()`.](../recipes/codemods/cleanup/javascript/nonewarray) -* [Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.](../recipes/codemods/cleanup/javascript/nonewbuffer) -* [Disallow the use of the `null` literal.](../recipes/codemods/cleanup/javascript/nonull) -* [Disallow classes that only have static members.](../recipes/codemods/cleanup/javascript/nostaticonlyclass) -* [Disallow comparing `undefined` using `typeof`.](../recipes/codemods/cleanup/javascript/notypeofundefined) -* [Disallow awaiting non-promise values.](../recipes/codemods/cleanup/javascript/nounnecessaryawait) -* [Disallow unreadable array destructuring.](../recipes/codemods/cleanup/javascript/nounreadablearraydestructuring) -* [Disallow useless fallback when spreading in object literals.](../recipes/codemods/cleanup/javascript/nouselessfallbackinspread) -* [Disallow useless array `length` check.](../recipes/codemods/cleanup/javascript/nouselesslengthcheck) +* [Disallow number literals with zero fractions or dangling dots.](../recipes/codemods/cleanup/javascript/nozerofractions) +* [Disallow or enforce spaces inside of blocks after opening block and before closing block](../recipes/codemods/format/blockspacing) +* [Disallow or enforce spaces inside of blocks after opening block and before closing block in `