I need to avoid no-undefined from eslint - we have strict policy regarding this
import device from 'detox';
throwing an error
You don't need to import it, it is globally available in the tests. Just remove the import and everything should work just fine
@aamorozov in your .eslitrc
{
// ...
"globals": {
"device": false,
"expect": false,
"waitFor": false,
"element": false,
"by": false,
}
}
@isnifer Thank you, that's what I needed
Most helpful comment
@aamorozov in your
.eslitrc