fix: Added linting rule to disable use of object prototypes (#2939)

This commit is contained in:
Wyatt Johnson
2020-04-17 17:12:36 +00:00
committed by GitHub
parent 5b92f7e968
commit 0e9621c499
10 changed files with 70 additions and 57 deletions
@@ -31,7 +31,7 @@ const persistedQueriesGetMethodMiddleware: Middleware = (next) => async (
// Rebuild the query parameters for GET.
const params: Record<string, string> = { query: "" };
for (const key in body) {
if (!body.hasOwnProperty(key)) {
if (!Object.prototype.hasOwnProperty.call(body, key)) {
continue;
}