import-js/eslint-plugin-import

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

Offen

#1.577 geöffnet am 19.12.2019

 (4 Kommentare) (9 Reaktionen) (0 zugewiesene Personen)JavaScript (1.548 Forks)batch import
enhancementhelp wantedimport/export ordering

Repository-Metriken

Stars
 (5.940 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

"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