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 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

package.json
{
"name": "eslint-plugin-beautiful-sort",
"version": "1.0.1",
"version": "1.0.2",
"description": "eslint plugin for import sort",

@@ -19,3 +19,7 @@ "main": "src/index.js",

},
"keywords": ["eslint", "import", "import-sort"],
"keywords": [
"eslint",
"import",
"import-sort"
],
"author": "https://github.com/Allohamora",

@@ -22,0 +26,0 @@ "license": "ISC",

# eslint-plugin-beautiful-sort
## eslint plugin for es6 imports sort by order like eslnt/sort-imports with fix option
```usage: "beautiful-sort/import": [2, { "special": ["react"] }, "order": ["special", "default", "defaultObj", "obj", "none"] ]```
eslint plugin for es6 imports sort by order like eslnt/sort-imports with fix option
## Working
From
```js
import './Test.css';
import {a,b,c} from 'a';
import A from 'g';
import React from 'react';
```
To
```js
import React from 'react';
import A from 'g';
import {a,b,c} from 'a';
import './Test.css';
```
## Usage
`npm i -D eslint-plugin-beautiful-sort`
```json
{
"plugins": [
"beautiful-sort"
],
"rules": {
"beautiful-sort/import": [2, {
"special": ["react"],
"order": ["special", "default", "defaultObj", "obj", "none"]
}]
}
}
```
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