Skip to content

Commit c85f7d6

Browse files
committed
chore(src): linting pass
1 parent 7a69297 commit c85f7d6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/rules/extensions.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)