ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / typescript/no-unsafe-object-assign
Disallows unsafe “Object.assign”.
module.exports = {
plugins: ["misc"],
rules: {
"misc/typescript/no-unsafe-object-assign": "error"
}
};
const x = { value: 1 } as const;
Object.assign(x, { value: 2 });
const x = { value: 1 };
Object.assign(x, { value: 2 });