As various people have pointed out, as a matter of realpolitic the UK will have very little choice in complying with most directives because the alternative of maintaining two markets or not shipping to the EU are infeasible. The requirement of not having a hard border in Ireland which the UK has already conceded means that
Northern Ireland will almost certainly have to follow EU directives.
e.g. https://medium.com/@gordonguthrie/no-deal-wont-happen-e185f9...
Realistically the options are "disaster Brexit" (fail to make other trade arrangements, lose NI and Gibraltar, huge airline losses, shutdown of nuclear reactors run by EDF, etc) or "pointless Brexit" (everything remains roughly the same, except the UK loses its vote)