Skip to content

Commit 34296ec

Browse files
authored
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 jquerygh-4676
1 parent 7b0864d commit 34296ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"rules": {
2121
// That is okay for the built version
2222
"no-multiple-empty-lines": "off",
23+
// When custom compilation is used, the version string
24+
// can get large. Accept that in the built version.
25+
"max-len": "off",
2326
"one-var": "off"
2427
}
2528
}

src/core.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import isWindow from "./var/isWindow.js";
1414
import DOMEval from "./core/DOMEval.js";
1515
import toType from "./core/toType.js";
1616

17-
// When custom compilation is used, the version string can get large.
18-
// eslint-disable-next-line max-len
1917
var version = "@VERSION",
2018

2119
rhtmlSuffix = /HTML$/i,

0 commit comments

Comments
 (0)