I ended up adding the following to my .eslintrc.json
:
"globals": {
"__ENV": "readonly"
},
"rules": {
"import/no-unresolved": "off", // k6 is actually golang, can't really import it
"no-restricted-globals": "off", // required by k6, e.g. "init" context
"import/extensions": "off" // .js ending is ok
}
After which, I could fix the linting errors as I would normally