]> source.dussan.org Git - jquery.git/commitdiff
Build: Move ESLint max-len disable-directive to dist/.eslintrc.json
authorEd S <ejsanders@gmail.com>
Mon, 27 Apr 2020 19:29:13 +0000 (20:29 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Apr 2020 19:29:13 +0000 (21:29 +0200)
This disable-directive only applies to the built version, so put
it in /dist. This avoids a warning about an unused directive in the
source version.

Closes gh-4676

dist/.eslintrc.json
src/core.js

index af08e681200cda5bf07c499791dbec455fb6bd39..7f7df317cf1c6eef40b15155621216815635d286 100644 (file)
@@ -20,6 +20,9 @@
                        "rules": {
                                // That is okay for the built version
                                "no-multiple-empty-lines": "off",
+                               // When custom compilation is used, the version string
+                               // can get large. Accept that in the built version.
+                               "max-len": "off",
                                "one-var": "off"
                        }
                }
index 0baffb6bc4e0afbdeb2c9750dd29edbb244fb210..d05d8488854717abc5d34e8ac15ebee12df6ca85 100644 (file)
@@ -14,8 +14,6 @@ import isWindow from "./var/isWindow.js";
 import DOMEval from "./core/DOMEval.js";
 import toType from "./core/toType.js";
 
-// When custom compilation is used, the version string can get large.
-// eslint-disable-next-line max-len
 var version = "@VERSION",
 
        rhtmlSuffix = /HTML$/i,