🌐 AI搜索 & 代理 主页
Skip to content

Commit d99e7fc

Browse files
committed
eslint: Move 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. Follow-up to jquery#4520
1 parent 46f9810 commit d99e7fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"rules": {
2121
// That is okay for the built version
2222
"no-multiple-empty-lines": "off",
23+
// Version number substituion may trigger max-len
24+
"max-len": "off",
2325
"one-var": "off"
2426
}
2527
}

src/core.js

Lines changed: 0 additions & 2 deletions
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)