The warning isn’t from ESLint — it’s from TypeScript’s type hints in Eclipse. Add // @ts-ignore above the document.execCommand("copy"); line to silence it. That’ll remove the deprecation warning without disabling validation globally.
// @ts-ignore
document.execCommand("copy");