import-js/eslint-plugin-import

Is it possible to sort imports based on variable names within group?

Open

#1,577 opened on Dec 19, 2019

View on GitHub
 (4 comments) (9 reactions) (0 assignees)JavaScript (4,946 stars) (1,540 forks)batch import
enhancementhelp wantedimport/export ordering

Description

"Sort the order within each group in alphabetical manner based on import path"

That's the current way... what If I wanted something like this..


import React from 'react';
import CompA from './zecomp.js
import CompB from './abigcomp.com

but sorting based on path gives me


import React from 'react';
import CompB from './abigcomp.com
import CompA from './zecomp.js

Contributor guide

Is it possible to sort imports based on variable names within group? · import-js/eslint-plugin-import#1577 | Good First Issue