simorgh
simorgh copied to clipboard
Investigate the use of require and module export in startServer.js
Is your feature request related to a problem? Please describe. After a discussion about upgrading eslint-config-airbnb to v19. As pointed out by the new rule import/no-import-module-exports. We should not import a module that has been exported with the module export.
Describe the solution you'd like
Please investigate the use of require
to import the modules in startServer.js that are exported with a module.export
method and implement this solution if everything works as expected.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Testing notes [Tester to complete]
Dev insight: Will Cypress tests be required or are unit tests sufficient? Will there be any potential regression? etc
- [x] This feature is expected to need manual testing.
Checklist
- [ ] (BBC contributors only) This issue follows the repository use guidelines
Additional context Add any other context or screenshots about the feature request here.