prettier-plugin-sort-imports VS tools

Compare prettier-plugin-sort-imports vs tools and see what are their differences.

prettier-plugin-sort-imports

A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order. (by trivago)

tools

Unified developer tools for JavaScript, TypeScript, and the web (by rome)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
prettier-plugin-sort-imports tools
9 45
2,973 24,334
2.7% -
5.9 0.0
2 months ago 8 months ago
TypeScript Rust
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

prettier-plugin-sort-imports

Posts with mentions or reviews of prettier-plugin-sort-imports. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-18.
  • Tailwind CSS: Automatic Class Sorting with Prettier
    6 projects | news.ycombinator.com | 18 Jan 2024
    In a similar vein, you can sort imports with Prettier using Trivago’s plugin.

    https://github.com/trivago/prettier-plugin-sort-imports

  • How to auto sort imports in frontend, example with typescript & nextjs
    2 projects | dev.to | 12 Jun 2023
    I went with my configuration you can go with one you like more. Find out more by clicking here
  • Looking to improve... Review my code??
    3 projects | /r/reactjs | 14 May 2023
    For most conventions regarding file structure, I would use tools like ESLint / Prettier instead of trying to enforce it with comments. For example this Prettier plugin allows you to enforce a specific import order without any extra effort.
  • Starting React Native Project in 2023
    13 projects | dev.to | 6 Jan 2023
    Unsorted imports look ugly. Also, it could be hard to read and add new imports. So why not sort them automatically? We can do it with trivago/prettier-plugin-sort-imports.
  • React Best Practices - The Complete List
    1 project | /r/javascript | 12 Dec 2022
    Your suggestion to sort imports is valid, but depends on VSCode as an IDE. It would be better to use Prettier with this plugin that sorts imports for you.
  • Fastest Frontend Tools in 2022
    13 projects | dev.to | 4 Oct 2022
    Despite the existence of Prettier, arguments about code style such as how to sort ES module imports still exist. Manually sorting ES modules wastes time, and usually leads to losing context when you are writing code and then have to navigate to the top of a file to modify your import statements. I love using the @trivago/prettier-plugin-sort-imports plugin which automatically sorts new imports, and works perfectly together with TypeScript's auto-import feature. Similarly, prettier-plugin-tailwindcss automatically sorts Tailwind classes in your code.
  • How do you enforce the order of imports?
    2 projects | /r/reactjs | 27 Sep 2022
    If you are using prettier, you can use https://github.com/trivago/prettier-plugin-sort-imports
  • How to quickly sort imports with Prettier
    1 project | dev.to | 30 Mar 2022
    In this GitHub repo, you can find a list of the other rules that are available.
  • React Best Practices – Tips for Writing Better React Code in 2022
    1 project | /r/reactjs | 4 Feb 2022
    For imports I like to use https://github.com/trivago/prettier-plugin-sort-imports so I don't have to think about it. Also, I think it's cleaner to have an index in your components folder that exports all of the named functions do you can import them into your files like:

tools

Posts with mentions or reviews of tools. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-18.
  • Biome.js : Prettier+ESLint killer ?
    3 projects | dev.to | 18 Apr 2024
    Biome is a fork of Rome, which was originally an ambitious tool written in Rust but abandoned in October 2023. It includes both a linter and a formatter, putting an end to the time-consuming difficulties associated with reconciling ESLint and Prettier rules.
  • Rescuing legacy Node.js projects with Bun
    1 project | dev.to | 6 Apr 2024
    When I saw the release of bun six months ago, I was not that hyped as I saw a tool that had similar ambitions, Rome, and dissapointed many. But it was different this time. It really is a drop in replacement for Node.js so you can start using it by replacing the npm and node commands in your package.json file. The main feature that captured my interest was the ability to use require and import statemtents in the same file. This allows you to keep using CommonJS modules and use import statemtents for any new modules that drop support for it. The only catch I could find so far is that if you decide to mix import and require statements, you cannot use module.exports but instead use export statement. I did exactly that and now I have a fully functional backend with admin panel that won't make your head scratch fighting with CommonJS and ESModules.
  • Build a Vite 5 backend integration with Flask
    11 projects | dev.to | 25 Feb 2024
    Once you build a simple Vite backend integration, try not to complicate Vite's configuration unless you absolutely must. Vite has become one of the most popular bundlers in the frontend space, but it wasn't the first and it certainly won't be the last. In my 7 years of building for the web, I've used Grunt, Gulp, Webpack, esbuild, and Parcel. Snowpack and Rome came-and-went before I ever had a chance to try them. Bun is vying for the spot of The New Hotness in bundling, Rome has been forked into Biome, and Vercel is building a Rust-based Webpack alternative.
  • BiomeJS 2024 Roadmap
    5 projects | news.ycombinator.com | 22 Jan 2024
    It definitely existed by the time rome_console/biome_console was created! The crate was created 2 years ago[1] and miette was released more than 2 years ago[2]. By the time rome_console was created miette was on v4, so presumably somewhat mature.

    [1]: https://github.com/rome/tools/commits/main/crates/rome_conso...

    [2]: https://crates.io/crates/miette/versions

  • Biome
    1 project | news.ycombinator.com | 29 Aug 2023
    Biome formats and lints your JavaScript and TypeScript code in a fraction of a second. Biome is the community successor of Rome Tools [0].

    As part of this announcement, we have released the first stable version of Biome [1]. Join us on our Discord [2] and support us via our open collective [3].

    I am one of the main maintainers of Biome. I will be happy to answer any questions :)

    [0] https://github.com/rome/tools

  • JavaScript Gom Jabbar
    12 projects | news.ycombinator.com | 2 Jul 2023
    I have no idea how true this is, but the source of the claim seems to come from here:

    https://github.com/rome/tools/discussions/4302

    "But in short, the company Rome Tools ran out of funding, so the core team of last year are no longer working on the project."

  • Rome v12.1: a Rust-based linter formatter for TypeScript, JSX and JSON
    7 projects | news.ycombinator.com | 13 May 2023
    For now, Rome implements most of the ESLint recommended rules (including TypeScript ESLint) and some additional rules that are enabled by default. In the future, you can expect a recommended preset that is a superset of the ESLint recommended preset. So if you're not heavily customising ESLint, you should be able to use Rome.

    Otherwise, most of the rules are not fine-tunable in the way that ESLint is. Rome tries to provide the experience that Prettier provided in the formatting tool: good defaults for a near-zero configuration experience. It tries to adopt the conventions of the JS/TS community. Still, some configuration is provided when the community is divided on some opinions (e.g. space vs. tab indentation, semicolons or as-needed semicolons, ...).

    There is an open issue [1] for listing equivalent rules between ESLint and Rome. Expect more documentation in the future, and maybe a migration tool.

    If I had been one of the founders of Rome, I could have pushed for more compatibility with ESLint. In particular, using the same naming conventions and thus the same names for most rules, and recognising ESLint ignore comments.

    [1] https://github.com/rome/tools/issues/3892

  • Rome
    1 project | dev.to | 14 Feb 2023
    Today we are going to talk about Rome. According to their github page
  • Complete rewrite of ESLint (GitHub discussion by the creator)
    5 projects | /r/javascript | 25 Nov 2022
    I must say, although it doesn't (of course) have anywhere near the configuration or plugin-capability of eslint, I've found Rome impressive so far. I have access to a range of PCs and the performance boost of a compiled binary makes a pretty big difference on a large repo on a slower machine.
  • Porting 58000 lines of D and C++ to jai, Part 0: Why and How
    12 projects | news.ycombinator.com | 23 Nov 2022
    Fast compilation seems very appealing. It is one of the main reason why I am interested into Go and Zig.

    I recently started working with Rust for contributing to projects like Rome/tools [1] and deno_lint [2]. The compilation and IDE experience is frustrating. Compilation is slow. I am afraid that this is rooted to the inherent complexity of Rust.

    [1] https://github.com/rome/tools

    [2] https://github.com/denoland/deno_lint

What are some alternatives?

When comparing prettier-plugin-sort-imports and tools you can also consider the following projects:

prettierd - prettier, as a daemon, for improved formatting speed.

biome - A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.

yarn.build - Build 🛠 and Bundle 📦 your local workspaces. Like Bazel, Buck, Pants and Please but for Yarn Berry. Build any language, mix javascript, typescript, golang and more in one polyglot repo. Ship your bundles to AWS Lambda, Docker, or any nodejs runtime.

livecodes - Code Playground That Just Works!

msgpack-tools - Command-line tools for converting between MessagePack and JSON / msgpack.org[UNIX Shell]

node-typescript-boilerplate - Minimalistic project template to jump start a Node.js back-end application in TypeScript. ESLint, Jest and type definitions included.

sucrase - Super-fast alternative to Babel for when you can target modern JS runtimes

XToolSet - Typed import, and export XLSX spreadsheet to JS / TS. Template-based create, render, and export data into excel files.

deno_lint - Blazing fast linter for JavaScript and TypeScript written in Rust

prettier-plugin-astro - Prettier plugin for Astro

gcc