Browse Source

Code style: Aligned code style to new ESLint version.

Kamil Piechaczek 8 years ago
parent
commit
1abd909e32

+ 9 - 8
packages/ckeditor5-basic-styles/tests/bold.js

@@ -21,14 +21,15 @@ describe( 'Bold', () => {
 		const editorElement = document.createElement( 'div' );
 		document.body.appendChild( editorElement );
 
-		return ClassicTestEditor.create( editorElement, {
-			plugins: [ Bold ]
-		} )
-		.then( newEditor => {
-			editor = newEditor;
-
-			boldView = editor.ui.componentFactory.create( 'bold' );
-		} );
+		return ClassicTestEditor
+			.create( editorElement, {
+				plugins: [ Bold ]
+			} )
+			.then( newEditor => {
+				editor = newEditor;
+
+				boldView = editor.ui.componentFactory.create( 'bold' );
+			} );
 	} );
 
 	afterEach( () => {

+ 9 - 8
packages/ckeditor5-basic-styles/tests/boldengine.js

@@ -16,14 +16,15 @@ describe( 'BoldEngine', () => {
 	let editor, doc;
 
 	beforeEach( () => {
-		return VirtualTestEditor.create( {
-			plugins: [ Paragraph, BoldEngine ]
-		} )
-		.then( newEditor => {
-			editor = newEditor;
-
-			doc = editor.document;
-		} );
+		return VirtualTestEditor
+			.create( {
+				plugins: [ Paragraph, BoldEngine ]
+			} )
+			.then( newEditor => {
+				editor = newEditor;
+
+				doc = editor.document;
+			} );
 	} );
 
 	afterEach( () => {

+ 9 - 8
packages/ckeditor5-basic-styles/tests/italic.js

@@ -21,14 +21,15 @@ describe( 'Italic', () => {
 		const editorElement = document.createElement( 'div' );
 		document.body.appendChild( editorElement );
 
-		return ClassicTestEditor.create( editorElement, {
-			plugins: [ Italic ]
-		} )
-		.then( newEditor => {
-			editor = newEditor;
-
-			italicView = editor.ui.componentFactory.create( 'italic' );
-		} );
+		return ClassicTestEditor
+			.create( editorElement, {
+				plugins: [ Italic ]
+			} )
+			.then( newEditor => {
+				editor = newEditor;
+
+				italicView = editor.ui.componentFactory.create( 'italic' );
+			} );
 	} );
 
 	afterEach( () => {

+ 9 - 8
packages/ckeditor5-basic-styles/tests/italicengine.js

@@ -16,14 +16,15 @@ describe( 'ItalicEngine', () => {
 	let editor, doc;
 
 	beforeEach( () => {
-		return VirtualTestEditor.create( {
-			plugins: [ Paragraph, ItalicEngine ]
-		} )
-		.then( newEditor => {
-			editor = newEditor;
-
-			doc = editor.document;
-		} );
+		return VirtualTestEditor
+			.create( {
+				plugins: [ Paragraph, ItalicEngine ]
+			} )
+			.then( newEditor => {
+				editor = newEditor;
+
+				doc = editor.document;
+			} );
 	} );
 
 	afterEach( () => {

+ 11 - 10
packages/ckeditor5-basic-styles/tests/manual/basic-styles.js

@@ -13,13 +13,14 @@ import Undo from '@ckeditor/ckeditor5-undo/src/undo';
 import Bold from '../../src/bold';
 import Italic from '../../src/italic';
 
-ClassicEditor.create( document.querySelector( '#editor' ), {
-	plugins: [ Enter, Typing, Paragraph, Undo, Bold, Italic ],
-	toolbar: [ 'bold', 'italic', 'undo', 'redo' ]
-} )
-.then( editor => {
-	window.editor = editor;
-} )
-.catch( err => {
-	console.error( err.stack );
-} );
+ClassicEditor
+	.create( document.querySelector( '#editor' ), {
+		plugins: [ Enter, Typing, Paragraph, Undo, Bold, Italic ],
+		toolbar: [ 'bold', 'italic', 'undo', 'redo' ]
+	} )
+	.then( editor => {
+		window.editor = editor;
+	} )
+	.catch( err => {
+		console.error( err.stack );
+	} );