File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 89
89
"has" : " ^1.0.3" ,
90
90
"lodash" : " ^4.17.11" ,
91
91
"minimatch" : " ^3.0.4" ,
92
+ "object.values" : " ^1.1.0" ,
92
93
"read-pkg-up" : " ^2.0.0" ,
93
94
"resolve" : " ^1.11.0"
94
95
},
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import resolve from 'eslint-module-utils/resolve'
9
9
import docsUrl from '../docsUrl'
10
10
import { dirname , join } from 'path'
11
11
import readPkgUp from 'read-pkg-up'
12
+ import values from 'object.values'
12
13
13
14
// eslint/lib/util/glob-util has been moved to eslint/lib/util/glob-utils with version 5.3
14
15
// and has been moved to eslint/lib/cli-engine/file-enumerator in version 6
@@ -214,7 +215,7 @@ const fileIsInPkg = file => {
214
215
}
215
216
216
217
const checkPkgFieldObject = pkgField => {
217
- const pkgFieldFiles = Object . values ( pkgField ) . map ( value => join ( basePath , value ) )
218
+ const pkgFieldFiles = values ( pkgField ) . map ( value => join ( basePath , value ) )
218
219
if ( pkgFieldFiles . includes ( file ) ) {
219
220
return true
220
221
}
You can’t perform that action at this time.
0 commit comments