Enable no-mixed-requires linting rule

Don't allow non-require statements mixed in with module require
statements.  We can do this now that optional dependencies were removed
in #1173.