Showing 193 of 398 total issues
Function Property
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Property(kind, key, computed, value, method, shorthand) {
Avoid deeply nested control flow statements. Open
Open
if (expr.type === syntax_1.Syntax.Identifier && expr.name === 'yield') {
arrow = true;
expr = {
type: ArrowParameterPlaceHolder,
params: [expr]
Avoid deeply nested control flow statements. Open
Open
if (!arrow) {
if (!this.context.isBindingElement) {
this.throwUnexpectedToken(this.lookahead);
}
if (expr.type === syntax_1.Syntax.SequenceExpression) {
Avoid deeply nested control flow statements. Open
Open
if (declarations.length === 1 && declarations[0].init === null && this.matchKeyword('in')) {
init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
this.nextToken();
left = init;
right = this.parseExpression();
Avoid deeply nested control flow statements. Open
Open
if ((this.source.charCodeAt(this.index + 1) === 0x2D) && (this.source.charCodeAt(this.index + 2) === 0x3E)) {
// '-->' is a single-line comment
this.index += 3;
var comment = this.skipSingleLineComment(3);
if (this.trackComment) {
Avoid deeply nested control flow statements. Open
Open
switch (ch) {
case 'n':
cooked += '\n';
break;
case 'r':
Avoid deeply nested control flow statements. Open
Open
else if (ch === 0x2A) {
this.index += 2;
var comment = this.skipMultiLineComment();
if (this.trackComment) {
comments = comments.concat(comment);
Avoid deeply nested control flow statements. Open
Open
if ('<>=!+-*%&|^/'.indexOf(str) >= 0) {
++this.index;
}
Avoid deeply nested control flow statements. Open
Open
for (str += '\\u'; restore < this.index; ++restore) {
str += this.source[restore];
}
Avoid deeply nested control flow statements. Open
Open
if (!this.match('}')) {
this.expect(',');
}
Avoid deeply nested control flow statements. Open
Open
else if (this.matchContextualKeyword('of')) {
if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
this.tolerateError(messages_1.Messages.InvalidLHSInForLoop);
}
this.nextToken();
Avoid deeply nested control flow statements. Open
Open
if (this.source[this.index] === '{') {
++this.index;
str += this.scanUnicodeCodePointEscape();
}
else {
Avoid deeply nested control flow statements. Open
Open
while (--pos >= 0 && RE_VN_CHAR.test(code[pos]));
Avoid deeply nested control flow statements. Open
Open
if (match[1]) {
if (match[1] === ch) ++ix;
else if (!--ix) break
} else {
rech.lastIndex = pushQBlock(match.index, rech.lastIndex, match[2]);
Avoid deeply nested control flow statements. Open
Open
if (~beforeReWords.indexOf(code.slice(pos + 1, end))) {
start = next;
}
Avoid deeply nested control flow statements. Open
Open
if (!this.match(',')) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (this.match('...')) {
if (!this.context.isBindingElement) {
this.throwUnexpectedToken(this.lookahead);
}
expressions.push(this.parseRestElement(params));
Avoid deeply nested control flow statements. Open
Open
if (this.trackComment) {
loc.end = {
line: this.lineNumber,
column: this.index - this.lineStart
};
Avoid deeply nested control flow statements. Open
Open
else if (ch === 0x3C) {
if (this.source.slice(this.index + 1, this.index + 4) === '!--') {
this.index += 4; // `<!--`
var comment = this.skipSingleLineComment(4);
if (this.trackComment) {
Avoid deeply nested control flow statements. Open
Open
if (this.scanner.isRestrictedWord(id.name)) {
this.tolerateUnexpectedToken(token, messages_1.Messages.StrictLHSAssignment);
}