Skip to content

Import sorting rule. Does everything ESLint 'sort-imports' does, but also allows ignoring member syntax order.

Notifications You must be signed in to change notification settings

unematiii/eslint-plugin-sort-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

eslint-plugin-sort-imports

ESLint rule to require sorting of import declarations. Does everything ESLint sort-imports does, but also allows ignoring member syntax order by defining additional value 'any' for memberSyntaxSortOrder option.

Install

npm i @unemati/eslint-plugin-sort-imports -D

Usage

ESLint config:

plugins: ['@unemati/sort-imports'],
'@unemati/sort-imports/imports': ['error', {
    ignoreDeclarationSort: false,
    memberSyntaxSortOrder: 'any' // Ignore order of 'multiple', 'single' etc.
}],

About

Import sorting rule. Does everything ESLint 'sort-imports' does, but also allows ignoring member syntax order.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published