aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd S <ejsanders@gmail.com>2020-04-27 20:29:13 +0100
committerGitHub <noreply@github.com>2020-04-27 21:29:13 +0200
commit34296ec547f0ab6577e8c31815447990a9c01b31 (patch)
treed7ca11b4d0652da56a30c23c285e7080814ba3dc
parent7b0864d0539bbfbb01d88d9bc95369580ffd99bc (diff)
downloadjquery-34296ec547f0ab6577e8c31815447990a9c01b31.tar.gz
jquery-34296ec547f0ab6577e8c31815447990a9c01b31.zip
Build: Move ESLint max-len disable-directive to dist/.eslintrc.json
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
-rw-r--r--dist/.eslintrc.json3
-rw-r--r--src/core.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/dist/.eslintrc.json b/dist/.eslintrc.json
index af08e6812..7f7df317c 100644
--- a/dist/.eslintrc.json
+++ b/dist/.eslintrc.json
@@ -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"
}
}
diff --git a/src/core.js b/src/core.js
index 0baffb6bc..d05d84888 100644
--- a/src/core.js
+++ b/src/core.js
@@ -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,