import { Rule } from "eslint" ; import { Node } from "estree" ; const rule = { create : context => { return { "CallExpression > MemberExpression > Identifier.property[name='apply']" : ( node ) => { context . report ( { message : "Don't use 'apply'" , node , } ) ; } , } ; } , } ; export = rule ;