Procházet zdrojové kódy

Removed safeContextKeyword JSCS rule.

Szymon Cofalik před 10 roky
rodič
revize
f0c5d47481

+ 2 - 3
packages/ckeditor5-engine/.jscsrc

@@ -58,6 +58,5 @@
 	"disallowNewlineBeforeBlockStatements": true,
 	"validateLineBreaks": "LF",
 	"validateQuoteMarks": "'",
-	"validateIndentation": "\t",
-	"safeContextKeyword": [ "that" ]
-}
+	"validateIndentation": "\t"
+}

+ 0 - 4
packages/ckeditor5-engine/src/config.js

@@ -75,9 +75,7 @@ CKEDITOR.define( [ 'model', 'utils' ], ( Model, utils ) => {
 			}
 
 			// The target for this configuration is, for now, this object.
-			//jscs:disable safeContextKeyword
 			let target = this;
-			//jscs:enable
 
 			// The configuration name should be split into parts if it has dots. E.g: `resize.width`.
 			const parts = name.toLowerCase().split( '.' );
@@ -131,9 +129,7 @@ CKEDITOR.define( [ 'model', 'utils' ], ( Model, utils ) => {
 		 */
 		get( name ) {
 			// The target for this configuration is, for now, this object.
-			//jscs:disable safeContextKeyword
 			let source = this;
-			//jscs:enable
 
 			// The configuration name should be split into parts if it has dots. E.g. `resize.width` -> [`resize`, `width`]
 			const parts = name.toLowerCase().split( '.' );

+ 2 - 2
packages/ckeditor5-engine/src/treemodel/node.js

@@ -91,7 +91,7 @@ CKEDITOR.define( [ 'treemodel/attribute', 'utils', 'ckeditorerror' ], ( Attribut
 		 * @property {Number} depth
 		 */
 		get root() {
-			let root = this; // jscs:ignore safeContextKeyword
+			let root = this;
 
 			while ( root.parent ) {
 				root = root.parent;
@@ -162,7 +162,7 @@ CKEDITOR.define( [ 'treemodel/attribute', 'utils', 'ckeditorerror' ], ( Attribut
 		 */
 		getPath() {
 			const path = [];
-			let node = this; // jscs:ignore safeContextKeyword
+			let node = this;
 
 			while ( node.parent ) {
 				path.unshift( node.getIndex() );