Skip to content

Commit 02a23ff

Browse files
committed
Add you-dont-need-lodash-underscore
To use native JavaScript when possible.
1 parent c04dc64 commit 02a23ff

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2-
extends: "airbnb-base",
2+
extends: [
3+
"airbnb-base",
4+
"plugin:you-dont-need-lodash-underscore/compatible"
5+
],
36
rules: { "newline-per-chained-call": [2] }
47
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"dependencies": {
3+
"eslint-plugin-you-dont-need-lodash-underscore": "^6.3.1",
34
"lodash": "^4.17.5",
45
"node-fetch": "^2.1.2"
56
},

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@ eslint-plugin-import@^2.11.0:
273273
read-pkg-up "^2.0.0"
274274
resolve "^1.6.0"
275275

276+
eslint-plugin-you-dont-need-lodash-underscore@^6.3.1:
277+
version "6.3.1"
278+
resolved "https://registry.yarnpkg.com/eslint-plugin-you-dont-need-lodash-underscore/-/eslint-plugin-you-dont-need-lodash-underscore-6.3.1.tgz#652ddaf98a5cebb733d0ae9ae7207cf14d3837b6"
279+
dependencies:
280+
kebab-case "^1.0.0"
281+
276282
eslint-restricted-globals@^0.1.1:
277283
version "0.1.1"
278284
resolved "https://registry.yarnpkg.com/eslint-restricted-globals/-/eslint-restricted-globals-0.1.1.tgz#35f0d5cbc64c2e3ed62e93b4b1a7af05ba7ed4d7"
@@ -588,6 +594,10 @@ json-stable-stringify-without-jsonify@^1.0.1:
588594
version "1.0.1"
589595
resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
590596

597+
kebab-case@^1.0.0:
598+
version "1.0.0"
599+
resolved "https://registry.yarnpkg.com/kebab-case/-/kebab-case-1.0.0.tgz#3f9e4990adcad0c686c0e701f7645868f75f91eb"
600+
591601
levn@^0.3.0, levn@~0.3.0:
592602
version "0.3.0"
593603
resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee"

0 commit comments

Comments
 (0)