import-js/eslint-plugin-import

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

开放

#1,577 创建于 2019年12月19日

 (4 条评论) (9 个反应) (0 位负责人)JavaScript (1,549 个派生)batch import
enhancementhelp wantedimport/export ordering

仓库指标

星标
 (5,938 个星标)
PR 合并指标
 (平均合并 138天 22小时) (30 天内合并 3 个 PR)

描述

"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

贡献者指南