UNPKG

eslint-plugin-fp

Version:
25 lines (22 loc) 382 B
'use strict'; const create = function (context) { return { Identifier(node) { if (node.name === 'Proxy') { context.report({ node, message: 'Unallowed use of `Proxy`' }); } } }; }; module.exports = { create, meta: { docs: { description: 'Forbid the use of `Proxy`.', recommended: 'error' } } };