1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-07 21:47:02 +09:00

add no-var rule to linter

This commit is contained in:
Andrew Simachev 2023-08-12 18:13:55 +02:00
parent 089907269a
commit 8ce3111882
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
3 changed files with 4 additions and 2 deletions

View file

@ -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',

View file

@ -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

3
dist/run.js vendored
View file

@ -1,4 +1,5 @@
var s = document.createElement('script');
const s = document.createElement('script');
s.src = './main.js?' + Math.random();
s.type = 'text/javascript';