import-js/eslint-plugin-import

New feature - get error at multiple named import

Open

#1994 aperta il 24 feb 2021

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
help wantedrule proposal

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

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)

Guida contributor