Eslint-plugin-import: Flow type export awareness for import/group-exports rule

Created on 28 Mar 2020  路  2Comments  路  Source: benmosher/eslint-plugin-import

When using import/group-exports rule, the following statements are considered problematic. I am being asked to group them in a single export.

export type {FormAPI};
export {Form};

However, Flow type exports and JS exports can not be grouped.

Shall this be ignored by the rule? Shall we add some kind of rule option to customize this behaviour? Currently I can not see anyway to workaround this.

bug flow help wanted

All 2 comments

Seems like it should ignore this by default.

@ljharb I have already fixed this issue. Will submit a PR.

Was this page helpful?
0 / 5 - 0 ratings