From 8b2ae9b780d04e5ed988e97710e7941fdaf37dd9 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Thu, 29 Oct 2020 23:03:24 +0200 Subject: [PATCH] Hotfix .svglintrc.js There was a minor error in .svglintrc.js that caused it to silently fail in the size and centered checks due to a mistake in the `isIgnored` function. --- .svglintrc.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.svglintrc.js b/.svglintrc.js index bd76c9ba..7ef73c31 100644 --- a/.svglintrc.js +++ b/.svglintrc.js @@ -47,9 +47,7 @@ if (updateIgnoreFile) { } function isIgnored(linterName, path) { - return iconIgnored[linterName] - .map(ignored => ignored.hasOwnProperty(path)) - .some(v => v === true); + return iconIgnored[linterName].hasOwnProperty(path); } function ignoreIcon(linterName, path, $) {