Преглед изворни кода

Internal: Fixed code style after upgrade to latest ESLint.

Piotrek Koszuliński пре 7 година
родитељ
комит
d929fced14
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      packages/ckeditor5-utils/src/dom/rect.js
  2. 1 1
      packages/ckeditor5-utils/tests/mix.js

+ 2 - 2
packages/ckeditor5-utils/src/dom/rect.js

@@ -14,6 +14,8 @@ import log from '../log';
 import isText from './istext';
 import { isElement } from 'lodash-es';
 
+const rectProperties = [ 'top', 'right', 'bottom', 'left', 'width', 'height' ];
+
 /**
  * A helper class representing a `ClientRect` object, e.g. value returned by
  * the native `object.getBoundingClientRect()` method. Provides a set of methods
@@ -381,8 +383,6 @@ export default class Rect {
 	}
 }
 
-const rectProperties = [ 'top', 'right', 'bottom', 'left', 'width', 'height' ];
-
 // Acquires all the rect properties from the passed source.
 //
 // @private

+ 1 - 1
packages/ckeditor5-utils/tests/mix.js

@@ -60,7 +60,7 @@ describe( 'utils', () => {
 				set foo( v ) {
 					this._foo = v;
 				}
-				get foo() {}
+				get foo() { return 'whatever'; }
 			}
 
 			const Mixin = {