@michaldudak I'm disabling this rule only for `.spec.js` files here. The fixes in https://github.com/mui/material-ui/pull/34644 are in other files.    These files use block scope for organization and I can't place function declarations in there. Don't want to alter the tests too much