chore: Use ESLint overrides for config (#348)

This commit is contained in:
Nick Schonning 2020-12-08 00:17:14 -05:00 committed by GitHub
parent a9d25b04ac
commit 0c309c63c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 6 deletions

View file

@ -1,7 +1,5 @@
"use strict";
/* eslint-disable jsdoc/require-jsdoc */
(function main() {
// DOM elements
var markdown = document.getElementById("markdown");
@ -166,7 +164,7 @@
// Show library version
document.getElementById("version").textContent =
"(v" + markdownlint.getVersion() + ")";
"(v" + window.markdownlint.getVersion() + ")";
// Add event listeners
document.body.addEventListener("dragover", onDragOver);
@ -208,7 +206,7 @@
// Update Markdown from hash (if present)
if (window.location.hash) {
try {
const decodedHash = decodeURIComponent(window.location.hash.substring(1));
var decodedHash = decodeURIComponent(window.location.hash.substring(1));
if (hashPrefix === decodedHash.substring(0, hashPrefix.length)) {
markdown.value = decodedHash.substring(hashPrefix.length);
}