Commit 7b62042d authored by Robert Knight's avatar Robert Knight

Add lint check for semicolon usage

For stylistic consistency, require semicolons rather than relying on
ASI.
parent 7eca2d37
......@@ -19,10 +19,14 @@
"error",
{ allow: ["warn", "error"] },
],
"no-self-compare": "error",
"no-throw-literal": "error",
"no-unused-expressions": "error",
"no-use-before-define": [
"error",
{"functions": false},
],
"semi": "error",
"strict": ["error", "safe"],
},
"parserOptions": {
......
......@@ -16,15 +16,15 @@ module.exports = function () {
this.publishDestination = function () {
return this.isShared ? this.group.name : this.privateLabel;
}
};
this.groupType = function () {
return this.group.public ? 'public' : 'group';
}
};
this.setPrivacy = function (level) {
this.onSetPrivacy({level: level});
}
};
},
controllerAs: 'vm',
restrict: 'E',
......@@ -38,4 +38,4 @@ module.exports = function () {
},
template: require('../../../templates/client/publish_annotation_btn.html'),
};
}
};
......@@ -57,7 +57,7 @@ describe('publishAnnotationBtn', function () {
type: 'group'
},
isShared: true
})
});
var buttons = element.find('button');
assert.equal(buttons[0].innerHTML, 'Post to Research Lab');
});
......
......@@ -101,7 +101,7 @@ describe('windowScroll', function () {
assert.calledOnce(callback);
view.scrollY = 1800;
handler()
handler();
assert.calledTwice(callback);
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment