import-js/eslint-plugin-import

New feature - get error at multiple named import

Open

#1 994 ouverte le 24 févr. 2021

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)JavaScript (1 540 forks)batch import
help wantedrule proposal

Métriques du dépôt

Stars
 (4 946 stars)
Métriques de merge PR
 (Merge moyen 138j 22h) (3 PRs mergées en 30 j)

Description

For better code split and tree shake, need this to warn/error

// WANT THIS
// not ok
import { a, b } from 'package'

// ok
import { a } from 'package/a'
import { b } from 'package/b'

but have this (want Inverted(?) group-exports rule)

Screenshot 2021-02-24 at 18 25 53

If possible, with regex, to ignore selected packages (like react, storybook, @types, etc)

Guide contributeur