Open chdsbd opened 3 years ago
function foo() {} # bad sendMessage({cb: () => foo()}) # okay sendMessage({cb: foo})
TSLint has this: https://palantir.github.io/tslint/rules/no-unnecessary-callback-wrapper/
There's this ESLint package: https://github.com/jonaskello/eslint-plugin-functional/blob/master/docs/rules/prefer-tacit.md