From 21da09736a6c81236a7de5681f88f96d8706d74f Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Thu, 25 Nov 2021 11:58:38 +0000 Subject: [PATCH] chore: turn off `security/detect-object-injection` eslint rule (#563) --- .eslintrc.js | 1 + src/plugins/pdf-to-html/index.js | 1 - src/plugins/pdf-to-txt/index.js | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index bc3536f4a..e0eb4fd9b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -35,5 +35,6 @@ module.exports = { "prefer-destructuring": "off", "promise/prefer-await-to-callbacks": "warn", "promise/prefer-await-to-then": "warn", + "security/detect-object-injection": "off", }, }; diff --git a/src/plugins/pdf-to-html/index.js b/src/plugins/pdf-to-html/index.js index 3c36452a2..f2b8f7f04 100644 --- a/src/plugins/pdf-to-html/index.js +++ b/src/plugins/pdf-to-html/index.js @@ -1,5 +1,4 @@ /* eslint-disable security/detect-non-literal-fs-filename */ -/* eslint-disable security/detect-object-injection */ const autoParse = require("auto-parse"); const fixUtf8 = require("fix-utf8"); const fp = require("fastify-plugin"); diff --git a/src/plugins/pdf-to-txt/index.js b/src/plugins/pdf-to-txt/index.js index 878bba083..73dec948d 100644 --- a/src/plugins/pdf-to-txt/index.js +++ b/src/plugins/pdf-to-txt/index.js @@ -1,5 +1,4 @@ /* eslint-disable security/detect-non-literal-fs-filename */ -/* eslint-disable security/detect-object-injection */ const autoParse = require("auto-parse"); const fp = require("fastify-plugin"); const fs = require("fs").promises;