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