Permalink
Browse files

Fix linting errors with "npm run esfix"

  • Loading branch information...
1 parent 8efb544 commit e887d160ea8df451f36bd8474b17edd59648b14e @RomanovRoman RomanovRoman committed Oct 22, 2016
View
@@ -17,11 +17,11 @@
//
// You can also add standard routes to an AppRouter.
-import Backbone from 'backbone';
-import _ from 'underscore';
-import { triggerMethod } from './common/trigger-method';
-import MarionetteError from './error';
-import CommonMixin from './mixins/common';
+import Backbone from 'backbone';
+import _ from 'underscore';
+import { triggerMethod } from './common/trigger-method';
+import MarionetteError from './error';
+import CommonMixin from './mixins/common';
const ClassOptions = [
'appRoutes',
@@ -1,15 +1,15 @@
-import Backbone from 'backbone';
-import {version} from '../package.json';
+import Backbone from 'backbone';
+import {version} from '../package.json';
-import proxy from './utils/proxy';
-import extend from './utils/extend';
-import deprecate from './utils/deprecate';
+import proxy from './utils/proxy';
+import extend from './utils/extend';
+import deprecate from './utils/deprecate';
-import isNodeAttached from './common/is-node-attached';
-import mergeOptions from './common/merge-options';
-import getOption from './common/get-option';
-import normalizeMethods from './common/normalize-methods';
-import monitorViewEvents from './common/monitor-view-events';
+import isNodeAttached from './common/is-node-attached';
+import mergeOptions from './common/merge-options';
+import getOption from './common/get-option';
+import normalizeMethods from './common/normalize-methods';
+import monitorViewEvents from './common/monitor-view-events';
import {
bindEvents,
@@ -27,19 +27,19 @@ import {
} from './common/trigger-method';
-import MarionetteObject from './object';
-import TemplateCache from './template-cache';
-import View from './view';
-import CollectionView from './collection-view';
-import CompositeView from './composite-view';
-import Behavior from './behavior';
-import Region from './region';
-import Application from './application';
-import AppRouter from './app-router';
-import MarionetteError from './error';
+import MarionetteObject from './object';
+import TemplateCache from './template-cache';
+import View from './view';
+import CollectionView from './collection-view';
+import CompositeView from './composite-view';
+import Behavior from './behavior';
+import Region from './region';
+import Application from './application';
+import AppRouter from './app-router';
+import MarionetteError from './error';
-import behaviorsLookup from './config/behaviors-lookup';
-import Renderer from './config/renderer';
+import behaviorsLookup from './config/behaviors-lookup';
+import Renderer from './config/renderer';
import {
FEATURES,
View
@@ -6,12 +6,12 @@
// Behaviors allow you to blackbox View specific interactions
// into portable logical chunks, keeping your views simple and your code DRY.
-import _ from 'underscore';
+import _ from 'underscore';
import getUniqueEventName from './utils/get-unique-event-name';
-import MarionetteObject from './object';
-import DelegateEntityEventsMixin from './mixins/delegate-entity-events';
-import TriggersMixin from './mixins/triggers';
-import UIMixin from './mixins/ui';
+import MarionetteObject from './object';
+import DelegateEntityEventsMixin from './mixins/delegate-entity-events';
+import TriggersMixin from './mixins/triggers';
+import UIMixin from './mixins/ui';
const ClassOptions = [
'collectionEvents',
@@ -1,15 +1,15 @@
// Collection View
// ---------------
-import _ from 'underscore';
-import Backbone from 'backbone';
+import _ from 'underscore';
+import Backbone from 'backbone';
import destroyBackboneView from './utils/destroy-backbone-view';
-import isNodeAttached from './common/is-node-attached';
-import monitorViewEvents from './common/monitor-view-events';
+import isNodeAttached from './common/is-node-attached';
+import monitorViewEvents from './common/monitor-view-events';
import { triggerMethodOn } from './common/trigger-method';
import ChildViewContainer from './child-view-container';
-import MarionetteError from './error';
-import ViewMixin from './mixins/view';
+import MarionetteError from './error';
+import ViewMixin from './mixins/view';
const ClassOptions = [
'behaviors',
@@ -13,7 +13,7 @@
// configuration. Multiple handlers can be separated by a space. A
// function can be supplied instead of a string handler name.
-import _ from 'underscore';
+import _ from 'underscore';
import MarionetteError from '../error';
// Bind/unbind the event to handlers specified as a string of
@@ -1,7 +1,7 @@
// Trigger Method
// --------------
-import _ from 'underscore';
+import _ from 'underscore';
import getOption from './get-option';
// split the event name on the ":"
@@ -1,11 +1,11 @@
// Composite View
// --------------
-import _ from 'underscore';
-import deprecate from './utils/deprecate';
+import _ from 'underscore';
+import deprecate from './utils/deprecate';
import MarionetteError from './error';
-import CollectionView from './collection-view';
-import View from './view';
+import CollectionView from './collection-view';
+import View from './view';
const ClassOptions = [
'childViewContainer',
@@ -1,4 +1,4 @@
-import MarionetteError from '../error';
+import MarionetteError from '../error';
// Placeholder method to be extended by the user.
// The method should define the object that stores the behaviors.
@@ -1,9 +1,9 @@
// Renderer
// --------
-import _ from 'underscore';
+import _ from 'underscore';
import MarionetteError from '../error';
-import TemplateCache from '../template-cache';
+import TemplateCache from '../template-cache';
// Render a template with data by passing in the template
// selector and the data to render.
View
@@ -1,7 +1,7 @@
// Error
// -----
-import _ from 'underscore';
+import _ from 'underscore';
import extend from './utils/extend';
import {version} from '../package.json';
@@ -1,7 +1,7 @@
-import _ from 'underscore';
-import _invoke from '../utils/invoke';
-import { triggerMethod } from '../common/trigger-method';
-import Marionette from '../backbone.marionette';
+import _ from 'underscore';
+import _invoke from '../utils/invoke';
+import { triggerMethod } from '../common/trigger-method';
+import Marionette from '../backbone.marionette';
// MixinOptions
// - behaviors
View
@@ -1,11 +1,11 @@
-import _setOptions from '../utils/set-options';
-import getOption from '../common/get-option';
-import mergeOptions from '../common/merge-options';
-import normalizeMethods from '../common/normalize-methods';
+import _setOptions from '../utils/set-options';
+import getOption from '../common/get-option';
+import mergeOptions from '../common/merge-options';
+import normalizeMethods from '../common/normalize-methods';
import {
bindEvents,
unbindEvents
-} from '../common/bind-events';
+} from '../common/bind-events';
export default {
@@ -15,7 +15,7 @@ export default {
_initRegions() {
// init regions hash
- this.regions = this.regions || {};
+ this.regions = this.regions || {};
this._regions = {};
this.addRegions(_.result(this, 'regions'));
View
@@ -248,6 +248,6 @@ const ViewMixin = {
}
};
-_.extend(ViewMixin, BehaviorsMixin, CommonMixin, DelegateEntityEventsMixin, TriggersMixin, UIMixin);
+_.extend(ViewMixin, BehaviorsMixin, CommonMixin, DelegateEntityEventsMixin, TriggersMixin, UIMixin);
export default ViewMixin;
@@ -1,8 +1,8 @@
// Template Cache
// --------------
-import _ from 'underscore';
-import Backbone from 'backbone';
+import _ from 'underscore';
+import Backbone from 'backbone';
import MarionetteError from './error';
// Manage templates stored in `<script>` blocks,
View
@@ -1,13 +1,13 @@
// View
// ---------
-import _ from 'underscore';
-import Backbone from 'backbone';
-import isNodeAttached from './common/is-node-attached';
-import monitorViewEvents from './common/monitor-view-events';
-import ViewMixin from './mixins/view';
-import RegionsMixin from './mixins/regions';
-import Renderer from './config/renderer';
+import _ from 'underscore';
+import Backbone from 'backbone';
+import isNodeAttached from './common/is-node-attached';
+import monitorViewEvents from './common/monitor-view-events';
+import ViewMixin from './mixins/view';
+import RegionsMixin from './mixins/regions';
+import Renderer from './config/renderer';
const ClassOptions = [
'behaviors',
View
@@ -40,7 +40,7 @@ module.exports = function() {
$fixtures = $('<div id="fixtures">');
$('body').append($fixtures);
this.checkProperties = checkProperties;
- this.setFixtures = setFixtures;
+ this.setFixtures = setFixtures;
this.clearFixtures = clearFixtures;
});
@@ -208,9 +208,9 @@ describe('Behaviors', function() {
describe('behavior events', function() {
beforeEach(function() {
- this.fooClickStub = this.sinon.stub();
- this.barClickStub = this.sinon.stub();
- this.bazClickStub = this.sinon.stub();
+ this.fooClickStub = this.sinon.stub();
+ this.barClickStub = this.sinon.stub();
+ this.bazClickStub = this.sinon.stub();
this.viewClickStub = this.sinon.stub();
this.behaviors = {
@@ -264,7 +264,7 @@ describe('Behaviors', function() {
})
};
- this.model = new Backbone.Model();
+ this.model = new Backbone.Model();
this.collection = new Backbone.Collection();
this.View = Marionette.View.extend({
@@ -328,12 +328,12 @@ describe('Behaviors', function() {
describe('behavior UI', function() {
beforeEach(function() {
var suite = this;
- this.onRenderStub = this.sinon.stub();
+ this.onRenderStub = this.sinon.stub();
this.onBeforeAttachStub = this.sinon.stub();
- this.onAttachStub = this.sinon.stub();
- this.onDestroyStub = this.sinon.stub();
- this.onFooClickStub = this.sinon.stub();
- this.onBarClickStub = this.sinon.stub();
+ this.onAttachStub = this.sinon.stub();
+ this.onDestroyStub = this.sinon.stub();
+ this.onFooClickStub = this.sinon.stub();
+ this.onBarClickStub = this.sinon.stub();
this.behaviors = {
foo: Marionette.Behavior.extend({
@@ -370,7 +370,7 @@ describe('Behaviors', function() {
childView: this.View
});
- this.collection = new Backbone.Collection([{}]);
+ this.collection = new Backbone.Collection([{}]);
this.collectionView = new CollectionView({collection: this.collection});
this.setFixtures('<div id="region"></div>');
@@ -589,9 +589,9 @@ describe('Behaviors', function() {
describe('behavior model events', function() {
beforeEach(function() {
var suite = this;
- this.handleModelChangeStub = this.sinon.stub();
+ this.handleModelChangeStub = this.sinon.stub();
this.handleCollectionResetStub = this.sinon.stub();
- this.handleModelFooChangeStub = this.sinon.stub();
+ this.handleModelFooChangeStub = this.sinon.stub();
this.behaviors = {
foo: Marionette.Behavior.extend({
@@ -736,15 +736,15 @@ describe('Behaviors', function() {
beforeEach(function() {
var suite = this;
- this.initializeStub = this.sinon.stub();
- this.viewOnRenderStub = this.sinon.stub();
- this.fooClickStub = this.sinon.stub();
- this.barOnRenderStub = this.sinon.stub();
- this.barClickStub = this.sinon.stub();
- this.barModelChangeStub = this.sinon.stub();
+ this.initializeStub = this.sinon.stub();
+ this.viewOnRenderStub = this.sinon.stub();
+ this.fooClickStub = this.sinon.stub();
+ this.barOnRenderStub = this.sinon.stub();
+ this.barClickStub = this.sinon.stub();
+ this.barModelChangeStub = this.sinon.stub();
this.barCollectionSyncStub = this.sinon.stub();
- this.viewOnRenderStub = this.sinon.stub();
- this.bazClickStub = this.sinon.stub();
+ this.viewOnRenderStub = this.sinon.stub();
+ this.bazClickStub = this.sinon.stub();
this.behaviors = {
foo: Marionette.Behavior.extend({
@@ -786,7 +786,7 @@ describe('Behaviors', function() {
}
});
- this.model = new Backbone.Model();
+ this.model = new Backbone.Model();
this.collection = new Backbone.Collection();
this.view = new this.View({
@@ -4,8 +4,8 @@ describe('Marionette.bindEntityEvents', function() {
beforeEach(function() {
this.handleFooStub = this.sinon.stub();
this.handleBarStub = this.sinon.stub();
- this.listenToStub = this.sinon.stub();
- this.entityStub = this.sinon.stub();
+ this.listenToStub = this.sinon.stub();
+ this.entityStub = this.sinon.stub();
this.target = {
handleFoo: this.handleFooStub,
@@ -1537,8 +1537,8 @@ describe('collection view', function() {
describe('when a collection view is not rendered', function() {
beforeEach(function() {
var suite = this;
- this.Model = Backbone.Model.extend({});
- this.Collection = Backbone.Collection.extend({model: this.Model});
+ this.Model = Backbone.Model.extend({});
+ this.Collection = Backbone.Collection.extend({model: this.Model});
this.CollectionView = this.CollectionView.extend({
tagName: 'ul'
});
@@ -1559,8 +1559,8 @@ describe('collection view', function() {
suite.collection.trigger('sync');
};
- this.model1 = new this.Model({monkey: 'island'});
- this.model2 = new this.Model({lechuck: 'tours'});
+ this.model1 = new this.Model({monkey: 'island'});
+ this.model2 = new this.Model({lechuck: 'tours'});
this.collection = new this.Collection([this.model1]);
this.collectionView = new this.CollectionView({
Oops, something went wrong.

0 comments on commit e887d16

Please sign in to comment.