Skip to content

Commit 31b94bd

Browse files
author
New Geoff
committed
add keyword spacing rule and update lineage_hunter to match
1 parent fae00ec commit 31b94bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"guard-for-in": 2,
1616
"indent": [2, 2, {"SwitchCase": 2, "VariableDeclarator": 2}],
1717
"key-spacing": 0,
18+
"keyword-spacing": 2,
1819
"new-cap": 0,
1920
"no-alert": 2,
2021
"no-bitwise": 2,

builder/lineage_hunter.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var lineage_hunter = function () {
1919

2020
//find the {{> template-name }} within patterns
2121
var matches = pattern_assembler.find_pattern_partials(pattern);
22-
if(matches !== null) {
22+
if (matches !== null) {
2323
matches.forEach(function (match) {
2424
//strip out the template cruft
2525
var foundPatternKey = match
@@ -30,7 +30,7 @@ var lineage_hunter = function () {
3030

3131
// remove any potential pattern parameters. this and the above are
3232
// rather brutish but I didn't want to do a regex at the time
33-
if(foundPatternKey.indexOf('(') > 0) {
33+
if (foundPatternKey.indexOf('(') > 0) {
3434
foundPatternKey = foundPatternKey.substring(0, foundPatternKey.indexOf('('));
3535
}
3636

@@ -44,6 +44,7 @@ var lineage_hunter = function () {
4444

4545
//add it since it didnt exist
4646
pattern.lineageIndex.push(ancestorPattern.key);
47+
4748
//create the more complex patternLineage object too
4849
var l = {
4950
"lineagePattern": ancestorPattern.key,

0 commit comments

Comments
 (0)