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) 700 B
/** * @fileoverview Rule to flag use of continue statement * @author Borislav Zhivkov */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { docs: { description: "disallow `continue` statements", category: "Stylistic Issues", recommended: false }, schema: [] }, create(context) { return { ContinueStatement(node) { context.report(node, "Unexpected use of continue statement."); } }; } };