Unfortunately, it doesn’t work. Both options are in the eslintrc.
To clarify: eslint doesn’t complain about the export * from './server' line, even if it’s inside the if condition, but it doesn’t recognize/find the exported functions when I try to import them from another file. If I move the export out of the if condition, it works.