Skip to content

Commit

Permalink
Revert "Update eslint & plugins"
Browse files Browse the repository at this point in the history
This reverts commit 38746b8.
  • Loading branch information
timvisee committed Sep 4, 2022
1 parent 6306a43 commit 073accf
Show file tree
Hide file tree
Showing 16 changed files with 3,431 additions and 1,383 deletions.
17 changes: 7 additions & 10 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,21 @@ env:
extends:
- eslint:recommended
- prettier
- plugin:n/recommended
- plugin:node/recommended
- plugin:security/recommended

plugins:
- n
- node
- security

root: true

rules:
n/no-deprecated-api: off
n/no-unsupported-features/es-syntax: off
n/no-unsupported-features/node-builtins: off
n/no-unpublished-require: off
n/no-unpublished-import: off
n/no-process-exit: off
# This forces using file extensions in imports, which is a best practice, but refactoring would take some time
n/no-missing-import: off
node/no-deprecated-api: off
node/no-unsupported-features/es-syntax: off
node/no-unsupported-features/node-builtins: off
node/no-unpublished-require: off
node/no-unpublished-import: off

security/detect-non-literal-fs-filename: off
security/detect-object-injection: off
Expand Down
2 changes: 1 addition & 1 deletion app/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ parserOptions:
sourceType: module

rules:
n/no-unsupported-features: off
node/no-unsupported-features: off
2 changes: 1 addition & 1 deletion app/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Storage {
}

set user(info) {
this.engine.setItem('user', JSON.stringify(info));
return this.engine.setItem('user', JSON.stringify(info));
}

getFileById(id) {
Expand Down
2 changes: 2 additions & 0 deletions app/streams.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global TransformStream */

export function transformStream(readable, transformer, oncancel) {
try {
return readable.pipeThrough(new TransformStream(transformer));
Expand Down
2 changes: 1 addition & 1 deletion common/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const isServer = typeof genmap === 'function';
let prefix = '';
let manifest = {};
try {
//eslint-disable-next-line n/no-missing-require
//eslint-disable-next-line node/no-missing-require
manifest = require('../dist/manifest.json');
} catch (e) {
// use middleware
Expand Down
2 changes: 1 addition & 1 deletion ios/ios.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global window, document */
/* global window, document, fetch */

const MAXFILESIZE = 1024 * 1024 * 1024 * 2;

Expand Down
Loading

0 comments on commit 073accf

Please sign in to comment.