Skip to content

Commit

Permalink
Build: Move ESLint max-len disable-directive to dist/.eslintrc.json
Browse files Browse the repository at this point in the history
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
  • Loading branch information
edg2s authored Apr 27, 2020
1 parent 7b0864d commit 34296ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions dist/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 34296ec

Please sign in to comment.