ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / typescript/no-complex-return-type
Disallow complex function return types.
module.exports = {
plugins: ["misc"],
rules: {
"misc/typescript/no-complex-return-type": "error"
}
};
function f() {
return { x: 1 };
}
function f(): object {
return { x: 1 };
}