UNPKG

@coffeelint/cli

Version:
34 lines (26 loc) 792 B
(function() { var NoPlusPlus; module.exports = NoPlusPlus = (function() { class NoPlusPlus { lintToken(token, tokenApi) { return { token, context: `found '${token[0]}'` }; } }; NoPlusPlus.prototype.rule = { type: 'style', name: 'no_plusplus', level: 'ignore', message: 'The increment and decrement operators are forbidden', description: `This rule forbids the increment and decrement arithmetic operators. Some people believe the <tt>++</tt> and <tt>--</tt> to be cryptic and the cause of bugs due to misunderstandings of their precedence rules. This rule is disabled by default.` }; NoPlusPlus.prototype.tokens = ['++', '--']; return NoPlusPlus; }).call(this); }).call(this);