livecodes
prettier-plugin-sort-imports
Our great sponsors
livecodes | prettier-plugin-sort-imports | |
---|---|---|
14 | 9 | |
647 | 2,962 | |
46.2% | 5.6% | |
9.7 | 5.9 | |
8 days ago | about 2 months ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
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.
livecodes
- Livecodes.io: open-source, client-side code playground for 80 languages
-
LiveCodes AI Code Assistant
Please โญ star the project on GitHub if you like it, and follow LiveCodes on Twitter to be notified with latest updates!
-
LiveCodes for Education ๐
In the evolving landscape of education, teachers and students are continuously seeking effective learning tools. The need for such tools is even more pronounced in the sphere of programming. The complexity of setting up development environments and the steep learning curve of programming languages are often challenging. This is where LiveCodes steps in, offering a seamless solution that makes programming accessible, interactive, and engaging while remaining free (and open-source) with unlimited usage. The versatility of LiveCodes makes it an ideal tool for schools, colleges, and coding bootcamps, as well as course websites and online learning platforms.
-
Let's Make Learning Frontend Great Again!
LiveCodes is a feature-rich, open-source, client-side, code playground that supports 80+ languages and frameworks. Check out the announcement for details.
- LiveCodes: a code playground for React, Vue, Svelte, Solid, Typescript, Python, Go, Ruby, PHP and 80+ languages/frameworks.
-
Show HN: I made an in-browser code editor with code replay and REPL
I'm using https://github.com/live-codes/livecodes to just move it all completely into the client
-
LocalPen v0.2 โจ๐
LocalPen is a powerful frontend coding playground that runs totally on the client and can be hosted on any static file server. Try it now on localpen.io
-
LocalPen - DO hackathon submission
At last, it feels great to build apps that you and others actually use. I plan to continue building and adding features/fixes to LocalPen. It would be great to know your opinion, comments, advice, ideas and, even better, contribution.
-
LocalPen: Intellisense
LocalPen is a powerful frontend coding playground that runs totally on the client and can be hosted on any static file server. Try it now on localpen.io
-
Introducing LocalPen ๐โจ
Here I am introducing LocalPen. A project that I started as a small module to be added to the website, but actually has grown much larger and deserved to be a separate project.
prettier-plugin-sort-imports
-
Tailwind CSS: Automatic Class Sorting with Prettier
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
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??
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
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
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
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?
If you are using prettier, you can use https://github.com/trivago/prettier-plugin-sort-imports
-
How to quickly sort imports with Prettier
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
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:
What are some alternatives?
react-monaco-editor - Monaco Editor for React.
prettierd - prettier, as a daemon, for improved formatting speed.
livecodes-examples
biome - A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.
split - Unopinionated utilities for resizeable split views
node-typescript-boilerplate - Minimalistic project template to jump start a Node.js back-end application in TypeScript. ESLint, Jest and type definitions included.
react-pin-field - ๐ React component for entering PIN codes.
XToolSet - Typed import, and export XLSX spreadsheet to JS / TS. Template-based create, render, and export data into excel files.
github-markdown-css - The minimal amount of CSS to replicate the GitHub Markdown style
prettier-plugin-astro - Prettier plugin for Astro
Visual Studio Code - Visual Studio Code
easy-filter - EasyFilter is a lightweight โ๏ธ, just one dependency ๐ข, minimal setup ๐ฎ, intuitive ๐ and powerful ๐ช filter for all your filter needs.