From 625db8310189981604ce5d52214dbeb6bb048c87 Mon Sep 17 00:00:00 2001 From: Pieter Wigboldus Date: Tue, 9 Feb 2021 16:29:19 +0100 Subject: [PATCH] Cleanup code --- .eslintrc.js | 5 +++++ src/objects.js | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index d3e46f3..792087a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,6 +5,11 @@ module.exports = { node: true, browser: true }, + globals: { + describe: false, + it: false , + expect: false + }, extends: ['@hckrnews/eslint-config'], parserOptions: { sourceType: "module", diff --git a/src/objects.js b/src/objects.js index 6b24b11..b6e29ef 100644 --- a/src/objects.js +++ b/src/objects.js @@ -7,16 +7,12 @@ module.exports = class Obj { * * @param {object} original * @param {string} prefix - * - * @return {object} */ constructor(original, prefix) { this.original = original; this.prefix = prefix; this.flatObject = {}; this.parse(); - - return this; } /**