mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
This commit is contained in:
parent
7b0864d053
commit
34296ec547
3
dist/.eslintrc.json
vendored
3
dist/.eslintrc.json
vendored
@ -20,6 +20,9 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
// That is okay for the built version
|
// That is okay for the built version
|
||||||
"no-multiple-empty-lines": "off",
|
"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"
|
"one-var": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,6 @@ import isWindow from "./var/isWindow.js";
|
|||||||
import DOMEval from "./core/DOMEval.js";
|
import DOMEval from "./core/DOMEval.js";
|
||||||
import toType from "./core/toType.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",
|
var version = "@VERSION",
|
||||||
|
|
||||||
rhtmlSuffix = /HTML$/i,
|
rhtmlSuffix = /HTML$/i,
|
||||||
|
Loading…
Reference in New Issue
Block a user