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:
Ed S 2020-04-27 20:29:13 +01:00 committed by GitHub
parent 7b0864d053
commit 34296ec547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

3
dist/.eslintrc.json vendored
View 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"
}
}

View 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,