import-js/eslint-plugin-import

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

Ouverte

#1 577 ouverte le 19 déc. 2019

 (4 commentaires) (9 réactions) (0 personne assignée)JavaScript (1 549 forks)batch import
enhancementhelp wantedimport/export ordering

Métriques du dépôt

Stars
 (5 940 étoiles)
Métriques de merge PR
 (Merge moyen 138j 22h) (3 PRs mergées en 30 j)

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

Guide contributeur