I think checking the context is a good idea. Keep in mind, the context in which ESLint is executing isn't necessarily the context in which the validated code is intended to run. So even if `context.isNodeJS()` returns true, that doesn't mean `require()` can be used.