webpack/assets/javascripts/exportAll.js
Function generateExports
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateExports(directoryPath, exportFileContent = '') {
fs.readdirSync(directoryPath, { withFileTypes: true }).forEach(dirent => {
if (
dirent.isDirectory() &&
dirent.name !== '__mocks__' &&
Consider simplifying this complex logical expression. Open
Open
if (
fileExtension === '.js' &&
!dirent.name.endsWith('.test.js') &&
!dirent.name.endsWith('.fixtures.js') &&
!dirent.name.endsWith('mockRequests.js') &&