import-js/eslint-plugin-import

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

Aperta

#1577 aperta il 19 dic 2019

 (4 commenti) (9 reazioni) (0 assegnatari)JavaScript (1549 fork)batch import
enhancementhelp wantedimport/export ordering

Metriche repository

Star
 (5940 stelle)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

"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

Guida contributor