phenomnomnominal / betterer

betterer makes it easier to make incremental improvements to your codebase
MIT License
579 stars 38 forks source link

Request: more examples in the docs #1169

Open mikevercoelen opened 1 year ago

mikevercoelen commented 1 year ago

Super cool projects, love it.

I think it would be good if the docs have more examples, what would be super cool is to have an example (or even test package?) which tests for getting rid of a library (so it would test the import statement).

I'm wondering if someone has already done this?

We're using native-base and we want to get rid of it, we could ofc do a regex on import ... from 'native-base' but that's not fully waterproof, because within existing files, we could still include components from native-base and the test would still pass.

i.e. import { View } from 'native-base'; -> import { View, Text } from 'native-base';