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:
parent
089907269a
commit
8ce3111882
3 changed files with 4 additions and 2 deletions
|
@ -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',
|
||||
|
|
|
@ -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
3
dist/run.js
vendored
|
@ -1,4 +1,5 @@
|
|||
var s = document.createElement('script');
|
||||
const s = document.createElement('script');
|
||||
|
||||
s.src = './main.js?' + Math.random();
|
||||
s.type = 'text/javascript';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue