From 405603d530bb7885b64400bb15c646f9efc40c2c Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 8 Nov 2021 16:43:16 +0400 Subject: [PATCH] Fixed liniting error for validators' index.js files refs https://github.com/TryGhost/Ghost/commit/f0242baf9f85c697d7385476c9964c6e15d0dd45 - The index.js files in "input validators" are exposing an API and not doing anything else so these cases can be safely ignored - Ideally we'd have a solution which would export all modules in the folder without having to add any more declarations, but that's for another time! --- .eslintrc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index f35bd5b34b..4c284884a3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -37,6 +37,12 @@ module.exports = { ]] } }, + { + files: 'core/server/api/**/utils/validators/**/index.js', + rules: { + 'max-lines': ['off'] + } + }, /** * @TODO: enable these soon */