ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / typescript/define-function-in-one-statement
Requires that function is defined in one statement.
module.exports = {
plugins: ["misc"],
rules: {
"misc/typescript/define-function-in-one-statement": "error"
}
};
function f() {}
f.x = 1;
const f = Object.assign(() => {}, { x: 1 });