From 2b79e82d7b4169a77c4315afccd4a9712a7f8ed8 Mon Sep 17 00:00:00 2001 From: Dave Garwacke Date: Wed, 3 Jun 2020 18:11:30 -0400 Subject: [PATCH] Add you dont need lodash plugin This plugin helps codebases migrate from lodash/underscore to ES6+ based methods available natively on the browser. Currently it has about 25k downloads per week. We are currently using it but are blocked from adding it to the CodeClimate build due to it being missing here. https://libraries.io/npm/eslint-plugin-you-dont-need-lodash-underscore https://www.npmjs.com/package/eslint-plugin-you-dont-need-lodash-underscore --- package.json | 1 + yarn.lock | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/package.json b/package.json index e43702986..71b0fdb2e 100644 --- a/package.json +++ b/package.json @@ -96,6 +96,7 @@ "eslint-plugin-wordpress": "^0.1.0", "eslint-plugin-xogroup": "^1.2.0", "eslint-plugin-xss": "^0.1.8", + "eslint-plugin-you-dont-need-lodash-underscore": "^6.10.0", "glob": "^7.0.6", "prettier": "^1.2.2" }, diff --git a/yarn.lock b/yarn.lock index 9c13480bd..ffd73bb2f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1532,6 +1532,13 @@ eslint-plugin-xss@^0.1.8: dependencies: requireindex "~1.1.0" +eslint-plugin-you-dont-need-lodash-underscore@^6.10.0: + version "6.10.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-you-dont-need-lodash-underscore/-/eslint-plugin-you-dont-need-lodash-underscore-6.10.0.tgz#63df0785ee1a07365ef77db907692f1ac928e000" + integrity sha512-Zu1KbHiWKf+alVvT+kFX2M5HW1gmtnkfF1l2cjmFozMnG0gbGgXo8oqK7lwk+ygeOXDmVfOyijqBd7SUub9AEQ== + dependencies: + kebab-case "^1.0.0" + eslint-restricted-globals@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/eslint-restricted-globals/-/eslint-restricted-globals-0.1.1.tgz#35f0d5cbc64c2e3ed62e93b4b1a7af05ba7ed4d7" @@ -2192,6 +2199,11 @@ jsx-ast-utils@^2.0.0, jsx-ast-utils@^2.0.1: dependencies: array-includes "^3.0.3" +kebab-case@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/kebab-case/-/kebab-case-1.0.0.tgz#3f9e4990adcad0c686c0e701f7645868f75f91eb" + integrity sha1-P55JkK3K0MaGwOcB92RYaPdfkes= + leven@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580"