Skip to content

Commit 80eddcf

Browse files
committed
- Remove lodash dep for file (Node 6 supports the needed array methods)
1 parent cff8234 commit 80eddcf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/rules/checkParamNames.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import _ from 'lodash';
21
import iterateJsdoc from '../iterateJsdoc';
32

43
const validateParameterNames = (targetTagName : string, functionParameterNames : Array<string>, jsdoc, report) => {
@@ -10,7 +9,7 @@ const validateParameterNames = (targetTagName : string, functionParameterNames :
109
return tag.tag === targetTagName && !tag.name.includes('.');
1110
});
1211

13-
return _.some(paramTags, (tag, index) => {
12+
return paramTags.some((tag, index) => {
1413
const functionParameterName = functionParameterNames[index];
1514

1615
if (!functionParameterName) {
@@ -49,8 +48,8 @@ const validateParameterNames = (targetTagName : string, functionParameterNames :
4948
const validateParameterNamesDeep = (targetTagName : string, jsdocParameterNames : Array<string>, report : Function) => {
5049
let lastRealParameter;
5150

52-
return _.some(jsdocParameterNames, (jsdocParameterName) => {
53-
const isPropertyPath = _.includes(jsdocParameterName, '.');
51+
return jsdocParameterNames.some((jsdocParameterName) => {
52+
const isPropertyPath = jsdocParameterName.includes('.');
5453

5554
if (isPropertyPath) {
5655
if (!lastRealParameter) {

0 commit comments

Comments
 (0)