From 9e8146bf1c268373dfa22d1d541d4c175caf2e56 Mon Sep 17 00:00:00 2001 From: z0ccc Date: Fri, 2 Jul 2021 15:25:58 -0400 Subject: [PATCH] Removed eslint rule --- .eslintrc.js | 1 - src/components/TableBox.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index d90e3c6..e9d6078 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,7 +22,6 @@ module.exports = { 'linebreak-style': 'off', 'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.js'] }], 'jsx-a11y/label-has-associated-control': 'off', - 'prefer-destructuring': 'off', 'import/extensions': [ 'error', 'ignorePackages', diff --git a/src/components/TableBox.js b/src/components/TableBox.js index 4f7a40e..9185515 100644 --- a/src/components/TableBox.js +++ b/src/components/TableBox.js @@ -16,7 +16,7 @@ const sortArr = (arr) => { // sorts plugins object into comma separated list const sortPlugins = (data) => { - const length = data.length; + const { length } = data; let list = ''; for (let i = 0; i < length; i++) {