Ver código fonte

Code style: Switched to ESLint.

Kamil Piechaczek 8 anos atrás
pai
commit
190884115e

+ 1 - 1
packages/ckeditor5-basic-styles/src/bold.js

@@ -44,7 +44,7 @@ export default class Bold extends Plugin {
 		const keystroke = 'CTRL+B';
 
 		// Add bold button to feature components.
-		editor.ui.componentFactory.add( 'bold', ( locale ) => {
+		editor.ui.componentFactory.add( 'bold', locale => {
 			const view = new ButtonView( locale );
 
 			view.set( {

+ 1 - 1
packages/ckeditor5-basic-styles/src/italic.js

@@ -44,7 +44,7 @@ export default class Italic extends Plugin {
 		const keystroke = 'CTRL+I';
 
 		// Add bold button to feature components.
-		editor.ui.componentFactory.add( 'italic', ( locale ) => {
+		editor.ui.componentFactory.add( 'italic', locale => {
 			const view = new ButtonView( locale );
 
 			view.set( {

+ 6 - 6
packages/ckeditor5-basic-styles/tests/bold.js

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

+ 6 - 6
packages/ckeditor5-basic-styles/tests/boldengine.js

@@ -17,13 +17,13 @@ describe( 'BoldEngine', () => {
 
 	beforeEach( () => {
 		return VirtualTestEditor.create( {
-				plugins: [ Paragraph, BoldEngine ]
-			} )
-			.then( newEditor => {
-				editor = newEditor;
+			plugins: [ Paragraph, BoldEngine ]
+		} )
+		.then( newEditor => {
+			editor = newEditor;
 
-				doc = editor.document;
-			} );
+			doc = editor.document;
+		} );
 	} );
 
 	it( 'should be loaded', () => {

+ 6 - 6
packages/ckeditor5-basic-styles/tests/italic.js

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

+ 6 - 6
packages/ckeditor5-basic-styles/tests/italicengine.js

@@ -17,13 +17,13 @@ describe( 'ItalicEngine', () => {
 
 	beforeEach( () => {
 		return VirtualTestEditor.create( {
-				plugins: [ Paragraph, ItalicEngine ]
-			} )
-			.then( newEditor => {
-				editor = newEditor;
+			plugins: [ Paragraph, ItalicEngine ]
+		} )
+		.then( newEditor => {
+			editor = newEditor;
 
-				doc = editor.document;
-			} );
+			doc = editor.document;
+		} );
 	} );
 
 	it( 'should be loaded', () => {