Try to use ESLint Plugin Perfectionist: https://github.com/azat-io/eslint-plugin-perfectionist
There are options here to group imports, create custom groups and customize sorting as flexibly as possible. I think you will find it helpful.