How to tell eslint to: disable next line for
"'import' and 'export' may appear only with 'sourceType: module'"
Without configuration, it has to be inline.
The following doesn't seem to be working
/* eslint-disable */
// eslint-disable-next-line
Why:
Let's say you are writing a test inside a NON module project, and you want to prove you can or cannot dynamically import an ESM module.
describe('my test', it("doesn't work", ()=> require('./my.esm.js'))
Where 'my.esm.js' could be
export function noop {}
...or whatever
But the main project, nor the tests are module based.