@@ -96,9 +96,9 @@ module.exports._getDependencies = function(config = {}) {
9696
9797 const resolvedDependencies = [ ] ;
9898
99- for ( const dep of dependencies ) {
99+ for ( const dependency of dependencies ) {
100100 const result = cabinet ( {
101- partial : dep ,
101+ partial : dependency ,
102102 filename : config . filename ,
103103 directory : config . directory ,
104104 ast : precinct . ast ,
@@ -110,16 +110,16 @@ module.exports._getDependencies = function(config = {}) {
110110 } ) ;
111111
112112 if ( ! result ) {
113- debug ( `skipping an empty filepath resolution for partial: ${ dep } ` ) ;
114- config . nonExistent . push ( dep ) ;
113+ debug ( `skipping an empty filepath resolution for partial: ${ dependency } ` ) ;
114+ config . nonExistent . push ( dependency ) ;
115115 continue ;
116116 }
117117
118118 const exists = fs . existsSync ( result ) ;
119119
120120 if ( ! exists ) {
121- config . nonExistent . push ( dep ) ;
122- debug ( `skipping non-empty but non-existent resolution: ${ result } for partial: ${ dep } ` ) ;
121+ config . nonExistent . push ( dependency ) ;
122+ debug ( `skipping non-empty but non-existent resolution: ${ result } for partial: ${ dependency } ` ) ;
123123 continue ;
124124 }
125125
@@ -158,16 +158,16 @@ function traverse(config = {}) {
158158 debug ( `filtered number of dependencies: ${ dependencies . length } ` ) ;
159159 }
160160
161- for ( const dep of dependencies ) {
161+ for ( const dependency of dependencies ) {
162162 const localConfig = config . clone ( ) ;
163- localConfig . filename = dep ;
163+ localConfig . filename = dependency ;
164164
165165 if ( localConfig . isListForm ) {
166166 for ( const item of traverse ( localConfig ) ) {
167167 subTree . add ( item ) ;
168168 }
169169 } else {
170- subTree [ dep ] = traverse ( localConfig ) ;
170+ subTree [ dependency ] = traverse ( localConfig ) ;
171171 }
172172 }
173173
@@ -186,7 +186,7 @@ function dedupeNonExistent(nonExistent) {
186186 const deduped = new Set ( nonExistent ) ;
187187 nonExistent . length = deduped . size ;
188188
189- for ( const { elem, i } of Object . entries ( deduped ) ) {
190- nonExistent [ i ] = elem ;
189+ for ( const { elem, index } of Object . entries ( deduped ) ) {
190+ nonExistent [ index ] = elem ;
191191 }
192192}
0 commit comments