I'm trying to inject a script from rewardful in the head of my react/nextjs build. However eslint doesn't seem to like the script they've given me
<script>(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');</script>
It takes issue with the semicolon after the w._req=r;
Error: Parsing error: Unexpected token ;
I've tried beautifying it so it exists on each line and removing the ';' character such as:
<script>(function(w, r) {
            w._rwq = r
            w[r] = w[r] || function() {
            (w[r].q = w[r].q || []).push(arguments)
          }
          })(window, 'rewardful');</script>
However the error persists of Error: error: Expected '}', got 'w'
Any ideas?
Thanks
