diff --git a/.eslintrc.js b/.eslintrc.js index 288418b66d..e0ce05eda1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -36,6 +36,7 @@ module.exports = { 'no-fallthrough': 'off', 'no-case-declarations': 'off', 'no-console': 'off', + 'no-var': 'warn', // unused vars 'no-unused-vars': 'off', diff --git a/check-licenses.js b/check-licenses.js index d10ed065e1..c6c611c26a 100644 --- a/check-licenses.js +++ b/check-licenses.js @@ -4,7 +4,7 @@ const remoteConfigUrl = 'https://raw.githubusercontent.com/anyproto/open/main/co function processLicenses(licenses, allowedLicenses) { const disallowedPackages = Object.keys(licenses).filter(pkg => { - var pkgLicenses = licenses[pkg].licenses.replace(/[()*]/g, ''); + let pkgLicenses = licenses[pkg].licenses.replace(/[()*]/g, ''); // The hyphenation language patterns are licensed under the LGPL (unless otherwise noted) and copyrighted to their respective creators and maintainers. // https://github.com/bramstein/hyphenation-patterns diff --git a/dist/run.js b/dist/run.js index 9b38d7d216..6ad4477915 100644 --- a/dist/run.js +++ b/dist/run.js @@ -1,4 +1,5 @@ -var s = document.createElement('script'); +const s = document.createElement('script'); + s.src = './main.js?' + Math.random(); s.type = 'text/javascript';