UNPKG

442 BJavaScriptView Raw
1'use strict';
2
3const utils = require('./utils.js')
4
5module.exports = function(context) {
6 return {
7 CallExpression: function(node) {
8 if (node.callee.type !== 'MemberExpression') return
9 if (node.callee.property.name !== 'delegate') return
10
11 if (utils.isjQuery(node)) {
12 context.report({
13 node: node,
14 message: '$.delegate is not allowed'
15 })
16 }
17 }
18 }
19}
20
21module.exports.schema = []