import-js/eslint-plugin-import

(group-exports) Option to never put the export next to the declaration

Open

#1.871 geöffnet am 7. Aug. 2020

Auf GitHub ansehen
 (7 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (1.540 Forks)batch import
help wanted

Repository-Metriken

Stars
 (4.946 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 138T 22h) (3 gemergte PRs in 30 T)

Beschreibung

I'd like to see an option for always having named exports be specified separately to their definition. e.g.

Fail

export const foo = 'bar';

Pass

const foo = 'bar';

export { foo };

I'm basically trying to mitigate the workflow of moving the export keyword to the bottom of the file if another named export is added.

Contributor Guide