UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

33 lines (25 loc) 685 B
/** * @fileoverview Rule to flag use of with statement * @author Nicholas C. Zakas */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { docs: { description: "disallow `with` statements", category: "Best Practices", recommended: false }, schema: [] }, create(context) { return { WithStatement(node) { context.report(node, "Unexpected use of 'with' statement."); } }; } };