Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-beautiful-sort

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-beautiful-sort

eslint plugin for import sort

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-77.42%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-beautiful-sort

eslint plugin for es6 imports sort by order like eslnt/sort-imports with fix option

Example

From

import './Test.css';
import {a,b,c} from 'a';
import C, {h} from 'j';
import A from 'g';
import * as Meme from 'meme';
import React from 'react';

To

import React from 'react'; // special
import * as Meme from 'meme'; // namespace
import A from 'g'; // default
import C, {h} from 'j'; // defaultObj
import {a,b,c} from 'a'; // obj
import './Test.css'; // none

Requirements

node js: v14.15.1+

Usage

npm i -D eslint-plugin-beautiful-sort

{
  "plugins": [
    "beautiful-sort"
  ],
  "rules": {
    "beautiful-sort/import": [2, {
      "special": ["react"], 
      "order": ["special", "namespace", "default", "defaultObj", "obj", "none"]
    }]
  }
}

Keywords

FAQs

Package last updated on 05 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc