@@ -36,7 +36,7 @@ const properties = {
3636 additionalProperties : false ,
3737 required : [ 'pattern' , 'action' ] ,
3838 } ,
39- }
39+ } ,
4040 } ,
4141} ;
4242
@@ -168,7 +168,7 @@ module.exports = {
168168 return false ;
169169 }
170170
171- function computeOverrideAction ( pathGroupOverrides = [ ] , path ) {
171+ function computeOverrideAction ( pathGroupOverrides , path ) {
172172 for ( let i = 0 , l = pathGroupOverrides . length ; i < l ; i ++ ) {
173173 const { pattern, patternOptions, action } = pathGroupOverrides [ i ] ;
174174 if ( minimatch ( path , pattern , patternOptions || { nocomment : true } ) ) {
@@ -185,11 +185,13 @@ module.exports = {
185185
186186 // If not undefined, the user decided if rules are enforced on this import
187187 const overrideAction = computeOverrideAction (
188- props . pathGroupOverrides ,
189- importPathWithQueryString
188+ props . pathGroupOverrides || [ ] ,
189+ importPathWithQueryString ,
190190 ) ;
191191
192- if ( overrideAction === 'ignore' ) { return ; }
192+ if ( overrideAction === 'ignore' ) {
193+ return ;
194+ }
193195
194196 // don't enforce anything on builtins
195197 if ( ! overrideAction && isBuiltIn ( importPathWithQueryString , context . settings ) ) { return ; }
0 commit comments