Update eslint & plugins

Also replace eslint-plugin-node with the maintained eslint-plugin-n
This commit is contained in:
AaronDewes 2022-08-09 15:26:25 +00:00
parent 64644b57e3
commit 38746b86fd
16 changed files with 1409 additions and 3457 deletions

View file

@ -6,4 +6,4 @@ parserOptions:
sourceType: module
rules:
node/no-unsupported-features: off
n/no-unsupported-features: off

View file

@ -110,7 +110,7 @@ class Storage {
}
set user(info) {
return this.engine.setItem('user', JSON.stringify(info));
this.engine.setItem('user', JSON.stringify(info));
}
getFileById(id) {

View file

@ -1,5 +1,3 @@
/* global TransformStream */
export function transformStream(readable, transformer, oncancel) {
try {
return readable.pipeThrough(new TransformStream(transformer));