Add and fix comma-dangle rules for *.js files

[MAILPOET-1829]
This commit is contained in:
Jan Jakeš
2019-02-20 13:36:05 +01:00
committed by M. Shull
parent 61ab593dcb
commit 5c92af4881
67 changed files with 940 additions and 938 deletions

View File

@@ -8,7 +8,7 @@ describe('Sidebar', function () {
var view;
beforeEach(function () {
view = new (SidebarComponent.SidebarWidgetsView)({
collection: new Backbone.Collection([])
collection: new Backbone.Collection([]),
});
});
@@ -21,7 +21,7 @@ describe('Sidebar', function () {
var view;
beforeEach(function () {
view = new (SidebarComponent.SidebarLayoutWidgetsView)({
collection: new Backbone.Collection([])
collection: new Backbone.Collection([]),
});
});
@@ -35,7 +35,7 @@ describe('Sidebar', function () {
beforeEach(function () {
view = new (SidebarComponent.SidebarStylesView)({
model: new Backbone.SuperModel({}),
availableStyles: new Backbone.SuperModel({})
availableStyles: new Backbone.SuperModel({}),
});
});
@@ -51,49 +51,49 @@ describe('Sidebar', function () {
model = new Backbone.SuperModel({
text: {
fontColor: '#000000',
fontFamily: 'Arial'
fontFamily: 'Arial',
},
h1: {
fontColor: '#000001',
fontFamily: 'Arial'
fontFamily: 'Arial',
},
h2: {
fontColor: '#000002',
fontFamily: 'Arial'
fontFamily: 'Arial',
},
h3: {
fontColor: '#000003',
fontFamily: 'Arial'
fontFamily: 'Arial',
},
link: {
fontColor: '#000005',
textDecoration: 'none'
textDecoration: 'none',
},
wrapper: {
backgroundColor: '#090909'
backgroundColor: '#090909',
},
body: {
backgroundColor: '#020202'
}
backgroundColor: '#020202',
},
});
availableStyles = new Backbone.SuperModel({
fonts: {
standard: ['Arial', 'Times New Roman', 'Tahoma', 'Comic Sans', 'Lucida'],
custom: [
'Arvo', 'Lato', 'Lora', 'Merriweather', 'Merriweather Sans', 'Noticia Text',
'Open Sans', 'Playfair Display', 'Roboto', 'Source Sans Pro'
]
'Open Sans', 'Playfair Display', 'Roboto', 'Source Sans Pro',
],
},
textSizes: [
'9px', '10px'
'9px', '10px',
],
headingSizes: [
'10px', '12px', '14px', '16px', '18px'
]
'10px', '12px', '14px', '16px', '18px',
],
});
innerView = new (SidebarComponent.SidebarStylesView)({
model: model,
availableStyles: availableStyles
availableStyles: availableStyles,
});
innerView.render();