XO
eslint-plugin-simple-import-sort
Our great sponsors
XO | eslint-plugin-simple-import-sort | |
---|---|---|
9 | 7 | |
7,543 | 1,883 | |
0.6% | - | |
6.0 | 6.7 | |
about 2 months ago | 13 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
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.
XO
-
ESLint: Flat Config Rollout Plan
Usually you would pick a config you like and set it up for your project, notable ones are already mentioned but I'll mention more:
- xo https://github.com/xojs/xo
-
Configuring ESLint, Prettier, and TypeScript Together | Josh Goldberg
You might enjoy `xo` :) https://github.com/xojs/xo
- From Ruby to Node: Overhauling Shopify’s CLI for a Better Developer Experience
-
Front-end Guide
XO
-
Code Review chronicles: destructuring, linting and one valid reason for Typescript
The developer told me we could not do that because the linter we are using. (XO)[https://github.com/xojs/xo] started complaining.
-
Yarn.lock: How to Update it
Real world example: you are using create-react-app, and you want to also to use xo, as both come with their own version of ESLint pre-installed, you could end up with 2 ESLint installed.
-
Lint rules updates: a sane and safe approach to fixes
One of the biggest hassles to update was the linter we are using: XO, which is a very opinionated, but customizable linter base on ESlint.
-
JavaScript Influencers to Follow in 2021🤩
Projects: awesome, awesome-nodejs, avajs/ava, xojs/xo
eslint-plugin-simple-import-sort
-
PURISTA - Thanks to amazing open-source software
eslint-plugin-simple-import-sort by Simon Lydell @SimonLydell
-
eslint-plugin-simple-import-sort VS eslint-plugin-perfectionist - a user suggested alternative
2 projects | 22 Jun 2023
-
Group & sort imports with EsLint
There's also this if you want more control: https://github.com/lydell/eslint-plugin-simple-import-sort
-
How I found a bug in 2000 files
I was adding a new eslint plugin that will sort imports in js/ts files. After adding eslint-plugin-simple-import-sort, I run eslint --fix and found about 2000 files changed. As there was only reorder of imports I thought that there should not be any issues.
-
Sorting your imports with ESLint
For this article, we will be using eslint-plugin-simple-import-sort. This is an ESLint plugin that enables not only sorting with some nice defaults but also grouping based on defined patterns.
-
Sorting imports on save in React projects with ESLint.
TLDR eslint-plugin-simple-import-sort
-
Become the master of your eslint with no-restricted-syntax
See the docs on custom grouping for details.
What are some alternatives?
Standard - 🌟 JavaScript Style Guide, with linter & automatic code fixer
eslint-plugin-vue - Official ESLint plugin for Vue.js
ESLint - Find and fix problems in your JavaScript code.
torrent - download torrents with node from the CLI
eslint-plugin-big-number-rules - Enforce (or automatically fix) finance-safe calculations using BigNumber or similar libraries.
angular-styleguide - Angular Style Guide: A starting point for Angular development teams to provide consistency through good practices.
eslint-plugin-perfectionist - 🦄 ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
eslint-config-xo - ESLint shareable config for XO
eslint-plugin-import - ESLint plugin with rules that help validate proper imports.
eslint-plugin-svelte3 - An ESLint plugin for Svelte v3 components.
eslint-plugin-node - Additional ESLint's rules for Node.js