eslint-plugin-total-functions
eslint-plugin-total-functions copied to clipboard
New rule: ban Proxy
const target = {
a: "hello",
};
const handler = {
get() {
return 42;
},
};
const proxy2 = new Proxy(target, handler);
// Explodes at runtime
proxy2.a.toUpperCase();