UNPKG

@coffeelint/cli

Version:
31 lines (23 loc) 888 B
(function() { var NonEmptyConstructorNeedsParens, ParentClass; ParentClass = require('./empty_constructor_needs_parens.coffee'); module.exports = NonEmptyConstructorNeedsParens = (function() { class NonEmptyConstructorNeedsParens extends ParentClass { handleExpectedCallStart(isCallStart, tokenApi) { if (isCallStart[0] === 'CALL_START' && isCallStart.generated) { return { token: tokenApi.peek(isCallStart, 1) }; } } }; NonEmptyConstructorNeedsParens.prototype.rule = { type: 'style', name: 'non_empty_constructor_needs_parens', level: 'ignore', message: 'Invoking a constructor without parens and with arguments', description: `Requires constructors with parameters to include the parens` }; return NonEmptyConstructorNeedsParens; }).call(this); }).call(this);