Skip to content

Instantly share code, notes, and snippets.

@Isokaeder
Isokaeder / higher-order-functions.js
Last active April 10, 2024 10:56
eslint rule to find higher order functions
module.exports = {
meta: {
type: 'problem',
fixable: null,
schema: [],
},
create(context) {
function checkForHigherOrderFunction(node) {
if (
(node.type === 'ArrowFunctionExpression' ||