8
0
Pārlūkot izejas kodu

Removed safeContextKeyword JSCS rule.

Szymon Cofalik 10 gadi atpakaļ
vecāks
revīzija
a3693ee059

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

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

+ 0 - 4
packages/ckeditor5-utils/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( '.' );