Git Product home page Git Product logo

codemod-com / codemod Goto Github PK

View Code? Open in Web Editor NEW
102.0 0.0 6.0 39.79 MB

the open platform for building, sharing, discovering, and running code modification bots, aka codemods.

Home Page: https://codemod.com

License: Apache License 2.0

JavaScript 1.39% Shell 0.01% TypeScript 32.66% HTML 0.02% CSS 0.61% MDX 1.06% Dockerfile 0.01% Python 64.25%
codemod jscodeshift migration ts-morph upgrade ast-grep cleanup refactoring

codemod's People

Contributors

alexbit-codemod avatar allcontributors[bot] avatar arybitskiy avatar dependabot[bot] avatar dmytrohryshyn avatar farskid avatar grzim avatar grzpab avatar harsh24893 avatar hazetheai avatar hbjorbj avatar mirai2k avatar mohab-sameh avatar ppashakhanloo avatar r4zendev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codemod's Issues

ESLint & Prettier to Biome.js Migration

This is to migrate our monorepo's linting and formatting from ESLint & Prettier to Biome.js.

Why:

  1. Two in One: Biome comes with 190 lint rules from ESlint, TypeScript ESlint, and other sources with 97% compatibility with Prettier. Biome can be used as a replacement for two.
  2. Biome adds new CLI options that enables to format and lint only files that changed (using Git)
  3. its rust-based and 10x+ faster than eslint!!!

Biome Impact:

based on local run of biome on our monorepo, it runs the checks 10x faster (from 15.6 seconds down to just 1.6 seconds)

migration plan:

  1. Run eslint/biome/migrate-rules codemod and make minor tweaks. (156 files changed
  2. run biome to apply the required formatting (609 files changed)
  3. fixed the linting issues manually for each part of the platform (cli, vsce, studio, etc.)
  4. by now all lintings should work fine, so we enable the linting check for github action.

Codemod Impact:

If we were to manually migrate the Codemod Monorepo alone, we would have to:

  • adjust 134 existing package.json files:
    • replace ESLint scripts (1 minute per file);
    • replace ESLint deps (1 minute per file);
  • find a corresponding rule for each of the existing ESLint rules (2 minutes per rule);
  • replace Prettier configuration (5 minutes)

It would have taken up to a whole day of boring mechanical work to perform the migration manually without performing any additional troubleshooting

[codemod request] Node.js 22 upgrade codemods

Node.js 22 upgrade codemods

Codemod description

Codemods to help automate the Node.js 22 upgrade process according to the release notes here.

Codemod engine

TBD

file extensions to process

TBD

Applicability Criteria

from: [["node.js", "<", "22.0.0"]],

what is the earliest version of the package where the new pattern is introduced?
to: ["node.js", "=", "22.0.0"]

post commands - installing/unsintalling packages

TBD

Codemod arguments

TBD

tags for discovery

["node.js", "migration"]

Codemod source URL

TBD

Additional context or links

Cannot sign in using Cursor

The issue arises when attempting to authenticate the Codemod extension in Cursor. After successful authentication on the web, the website attempts to redirect using the vscode:// URL scheme. However, the Cursor application does not recognize this URL scheme. A workaround has been found where manually changing the URL scheme to cursor:// allows the redirect to work as expected.

Steps to Replicate

  1. Open the Cursor application.
  2. Install the Codemod extension within the Cursor application.
  3. Click on the 'Sign In' button within the Codemod extension.
  4. Authenticate with the required credentials on the web.
  5. After successful authentication, the website attempts to redirect using the vscode:// URL scheme.

At this point, the Cursor application fails to recognize the vscode:// URL scheme and thus Codemod cannot sign in.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.