I have an Expo React Native app that has a ton of unused imports in components.
I have Prettier setup for code formatting, is it possible to configure Prettier to also remove any unused imports across the project?
I can't see anything in the docs and I don't know if there is a way to add extra eslint plugins to Prettier.
You can use VS Code .vscode/settings.json
to organize imports.
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With