Create separate ESLint config for test environments (Karma and Jest)

The following discussion from !26739 (merged) should be addressed: