Skip to content

Commit

Permalink
Apply linter fixes, but ignore max-statements for 'createAstUtils'
Browse files Browse the repository at this point in the history
  • Loading branch information
szuend committed Mar 5, 2021
1 parent b8fd70b commit a10d920
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/util/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function isFunctionCallWithName(node, names) {
return isCallExpression(node) && names.includes(getNodeName(node.callee));
}

// eslint-disable-next-line max-statements
function createAstUtils(settings) {
const additionalCustomNames = getAddtionalNames(settings);

Expand All @@ -74,7 +75,7 @@ function createAstUtils(settings) {
}

function isDescribe(node, options = {}) {
return (buildIsDescribeAnswerer(options))(node);
return buildIsDescribeAnswerer(options)(node);
}

function buildIsTestCaseAnswerer(options = {}) {
Expand All @@ -85,7 +86,7 @@ function createAstUtils(settings) {
}

function isTestCase(node, options = {}) {
return (buildIsTestCaseAnswerer(options))(node);
return buildIsTestCaseAnswerer(options)(node);
}

function isSuiteConfigExpression(node) {
Expand Down Expand Up @@ -142,7 +143,7 @@ function createAstUtils(settings) {
findReturnStatement,
isReturnOfUndefined,
buildIsDescribeAnswerer,
buildIsTestCaseAnswerer,
buildIsTestCaseAnswerer
};
}

Expand Down

0 comments on commit a10d920

Please sign in to comment.