Remove jshint - move everything over to eslint

Also removed all hints of previous linters
This commit is contained in:
Scott Nonnenberg
2018-07-06 17:48:14 -07:00
parent dc11db92f9
commit 43a44793c5
71 changed files with 1837 additions and 2030 deletions

View File

@@ -1,3 +1,6 @@
/* global Backbone, Whisper */
// eslint-disable-next-line func-names
(function() {
'use strict';
@@ -6,19 +9,19 @@
Whisper.GroupUpdateView = Backbone.View.extend({
tagName: 'div',
className: 'group-update',
render: function() {
//TODO l10n
render() {
// TODO l10n
if (this.model.left) {
this.$el.text(this.model.left + ' left the group');
this.$el.text(`${this.model.left} left the group`);
return this;
}
var messages = ['Updated the group.'];
const messages = ['Updated the group.'];
if (this.model.name) {
messages.push("Title is now '" + this.model.name + "'.");
messages.push(`Title is now '${this.model.name}'.`);
}
if (this.model.joined) {
messages.push(this.model.joined.join(', ') + ' joined the group');
messages.push(`${this.model.joined.join(', ')} joined the group`);
}
this.$el.text(messages.join(' '));