Skip to content

Commit 79166e3

Browse files
committed
Linting fixes.
1 parent 7ed0c99 commit 79166e3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

packages/core/src/lib/pseudopattern_hunter.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function(
2424

2525
//look for a pseudo pattern by checking if there is a file containing same
2626
//name, with ~ in it, ending in .json, .yml or .yaml
27-
const needle =
28-
currentPattern.subdir + '/' + currentPattern.fileName + '~*.{json,yml,yaml}';
27+
const needle = currentPattern.subdir +
28+
'/' +
29+
currentPattern.fileName +
30+
'~*.{json,yml,yaml}';
2931
const pseudoPatterns = glob.sync(needle, {
3032
cwd: paths.source.patterns,
3133
debug: false,
@@ -53,7 +55,7 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function(
5355
logger.warning(
5456
`There was an error parsing pseudopattern JSON for ${
5557
currentPattern.relPath
56-
}`
58+
}`
5759
);
5860
logger.warning(err);
5961
}
@@ -68,7 +70,10 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function(
6870
const variantName = pseudoPatterns[i]
6971
.substring(pseudoPatterns[i].indexOf('~') + 1)
7072
.split('.')[0];
71-
const variantExtension = pseudoPatterns[i].split('.').slice(-1).pop();
73+
const variantExtension = pseudoPatterns[i]
74+
.split('.')
75+
.slice(-1)
76+
.pop();
7277
const variantFilePath = path.join(
7378
currentPattern.subdir,
7479
currentPattern.fileName + '~' + variantName + '.' + variantExtension

0 commit comments

Comments
 (0)