From a10d920a85f161d63516cdfffcc1f456ba939a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Z=C3=BCnd?= Date: Fri, 5 Mar 2021 10:07:39 +0100 Subject: [PATCH] Apply linter fixes, but ignore max-statements for 'createAstUtils' --- lib/util/ast.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/util/ast.js b/lib/util/ast.js index 87b2025..95fe823 100644 --- a/lib/util/ast.js +++ b/lib/util/ast.js @@ -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); @@ -74,7 +75,7 @@ function createAstUtils(settings) { } function isDescribe(node, options = {}) { - return (buildIsDescribeAnswerer(options))(node); + return buildIsDescribeAnswerer(options)(node); } function buildIsTestCaseAnswerer(options = {}) { @@ -85,7 +86,7 @@ function createAstUtils(settings) { } function isTestCase(node, options = {}) { - return (buildIsTestCaseAnswerer(options))(node); + return buildIsTestCaseAnswerer(options)(node); } function isSuiteConfigExpression(node) { @@ -142,7 +143,7 @@ function createAstUtils(settings) { findReturnStatement, isReturnOfUndefined, buildIsDescribeAnswerer, - buildIsTestCaseAnswerer, + buildIsTestCaseAnswerer }; }