Skip to content

Commit

Permalink
Adjusts eslint rules and corrects more files according to eqeqeq
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Chaveiro committed Sep 5, 2017
1 parent e181d5e commit 361f29a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .eslintrc
Expand Up @@ -8,7 +8,6 @@ plugins:
parser: "babel-eslint"
rules:
eqeqeq: 1
backbone/model-defaults: 1
backbone/initialize-on-top: 0
backbone/events-on-top: 0
backbone/no-silent: 0
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/components/story/StoryAttachment.js
Expand Up @@ -23,7 +23,7 @@ class StoryAttachment extends React.Component {
var progress = parseInt(data.loaded / data.total * 100, 10);
$progress.css('width', progress + "%");

if (progress == 100) {
if (progress === 100) {
$progress.css('width', "1px");
$progress.hide();

Expand Down
4 changes: 2 additions & 2 deletions app/assets/javascripts/views/form_view.js
Expand Up @@ -33,7 +33,7 @@ module.exports = Backbone.View.extend({
},

select: function(name, select_options, options) {
if (typeof options == 'undefined') {
if (typeof options === 'undefined') {
options = {};
}

Expand Down Expand Up @@ -61,7 +61,7 @@ module.exports = Backbone.View.extend({
option_name = option_value = option + '';
}
var attr = {value: option_value};
if (model.get(name) == option_value) {
if (model.get(name) === option_value) {
attr.selected = true;
}
$(select).append(view.make('option', attr, option_name));
Expand Down

0 comments on commit 361f29a

Please sign in to comment.