]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix ESLint docs errors. (#23163)
authorXhmikosR <xhmikosr@gmail.com>
Fri, 28 Jul 2017 06:18:47 +0000 (09:18 +0300)
committerGitHub <noreply@github.com>
Fri, 28 Jul 2017 06:18:47 +0000 (09:18 +0300)
Ignore ESLint error in ie-emulation-modes-warning.js.

Although the error is valid, enough time has been spent on old IE's problems, so just ignore it.

assets/js/ie-emulation-modes-warning.js
js/.eslintrc.json

index 7996b9e3402f654c5adbabf42a004c229758f49d..c8f0bcac50904ea3bc614a533daf793bb55eeb64 100644 (file)
@@ -26,7 +26,7 @@
     // Detects the actual version of IE in use, even if it's in an older-IE emulation mode.
     // IE JavaScript conditional compilation docs: https://msdn.microsoft.com/library/121hztk3%28v=vs.94%29.aspx
     // @cc_on docs: https://msdn.microsoft.com/library/8ka90k2e%28v=vs.94%29.aspx
-    var jscriptVersion = new Function('/*@cc_on return @_jscript_version; @*/')()
+    var jscriptVersion = new Function('/*@cc_on return @_jscript_version; @*/')() // eslint-disable-line no-new-func
     if (jscriptVersion === undefined) {
       return 11 // IE11+ not in emulation mode
     }
index 8f79cbaa2cfe68afe0ffcf3877e595f612dbd2e8..72029797a333af2d8121803ecd3d3316c192f690 100644 (file)
@@ -58,6 +58,7 @@
       }
     ],
     "no-multi-spaces": ["error", {
+      "ignoreEOLComments": true,
       "exceptions": {
         "AssignmentExpression": true,
         "ArrowFunctionExpression": true,