Skip to content

Commit 8ce3111

Browse files
committed
add no-var rule to linter
1 parent 0899072 commit 8ce3111

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module.exports = {
3636
'no-fallthrough': 'off',
3737
'no-case-declarations': 'off',
3838
'no-console': 'off',
39+
'no-var': 'warn',
3940

4041
// unused vars
4142
'no-unused-vars': 'off',

check-licenses.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const remoteConfigUrl = 'https://raw.githubusercontent.com/anyproto/open/main/co
44

55
function processLicenses(licenses, allowedLicenses) {
66
const disallowedPackages = Object.keys(licenses).filter(pkg => {
7-
var pkgLicenses = licenses[pkg].licenses.replace(/[()*]/g, '');
7+
let pkgLicenses = licenses[pkg].licenses.replace(/[()*]/g, '');
88

99
// The hyphenation language patterns are licensed under the LGPL (unless otherwise noted) and copyrighted to their respective creators and maintainers.
1010
// https://github.com/bramstein/hyphenation-patterns

dist/run.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
var s = document.createElement('script');
1+
const s = document.createElement('script');
2+
23
s.src = './main.js?' + Math.random();
34
s.type = 'text/javascript';
45

0 commit comments

Comments
 (0)