parent
6306a433e8
commit
073accfe65
|
@ -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
|
||||
|
|
|
@ -6,4 +6,4 @@ parserOptions:
|
|||
sourceType: module
|
||||
|
||||
rules:
|
||||
n/no-unsupported-features: off
|
||||
node/no-unsupported-features: off
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* global TransformStream */
|
||||
|
||||
export function transformStream(readable, transformer, oncancel) {
|
||||
try {
|
||||
return readable.pipeThrough(new TransformStream(transformer));
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* global window, document */
|
||||
/* global window, document, fetch */
|
||||
|
||||
const MAXFILESIZE = 1024 * 1024 * 1024 * 2;
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
|
@ -70,7 +70,7 @@
|
|||
"@sentry/browser": "^5.30.0",
|
||||
"asmcrypto.js": "^0.22.0",
|
||||
"babel-loader": "^8.2.4",
|
||||
"babel-plugin-istanbul": "^6.1.1",
|
||||
"babel-plugin-istanbul": "^5.2.0",
|
||||
"base64-js": "^1.5.1",
|
||||
"content-disposition": "^0.5.4",
|
||||
"copy-webpack-plugin": "^6.4.0",
|
||||
|
@ -80,15 +80,18 @@
|
|||
"css-loader": "^5.2.7",
|
||||
"css-mqpacker": "^7.0.0",
|
||||
"cssnano": "^5.1.12",
|
||||
"eslint": "^8.21.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-mocha": "^10.1.0",
|
||||
"eslint-plugin-n": "^15.2.4",
|
||||
"eslint-plugin-security": "^1.5.0",
|
||||
"eslint": "^6.6.0",
|
||||
"eslint-config-prettier": "^6.15.0",
|
||||
"eslint-plugin-mocha": "^6.2.1",
|
||||
"eslint-plugin-node": "^10.0.0",
|
||||
"eslint-plugin-security": "^1.4.0",
|
||||
"expose-loader": "^0.7.5",
|
||||
"extract-loader": "^3.2.0",
|
||||
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
||||
"fast-text-encoding": "^1.0.3",
|
||||
"file-loader": "^6.2.0",
|
||||
"git-rev-sync": "^3.0.2",
|
||||
"html-loader": "^0.5.5",
|
||||
"http_ece": "^1.1.0",
|
||||
"husky": "^3.0.9",
|
||||
"intl-pluralrules": "^1.3.1",
|
||||
|
@ -108,6 +111,7 @@
|
|||
"puppeteer": "^2.0.0",
|
||||
"raw-loader": "^3.1.0",
|
||||
"rimraf": "^3.0.0",
|
||||
"script-loader": "^0.7.2",
|
||||
"sinon": "^7.5.0",
|
||||
"string-hash": "^1.1.3",
|
||||
"stylelint": "^14.9.1",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
rules:
|
||||
n/shebang: off
|
||||
node/shebang: off
|
||||
security/detect-child-process: off
|
||||
|
||||
no-console: off
|
||||
|
|
|
@ -5,7 +5,7 @@ const clientConstants = require('./clientConstants');
|
|||
|
||||
let sentry = '';
|
||||
if (config.sentry_id) {
|
||||
//eslint-disable-next-line n/no-missing-require
|
||||
//eslint-disable-next-line node/no-missing-require
|
||||
const version = require('../dist/version.json');
|
||||
sentry = `
|
||||
var SENTRY_CONFIG = {
|
||||
|
|
|
@ -120,7 +120,7 @@ module.exports = function(app) {
|
|||
);
|
||||
app.post(`/api/info/:id${ID_REGEX}`, auth.owner, require('./info'));
|
||||
app.get('/__version__', function(req, res) {
|
||||
// eslint-disable-next-line n/no-missing-require
|
||||
// eslint-disable-next-line node/no-missing-require
|
||||
res.sendFile(require.resolve('../../dist/version.json'));
|
||||
});
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@ extends:
|
|||
|
||||
plugins:
|
||||
- mocha
|
||||
- n
|
||||
- node
|
||||
|
||||
rules:
|
||||
n/no-unpublished-require: off
|
||||
node/no-unpublished-require: off
|
||||
|
||||
mocha/handle-done-callback: error
|
||||
mocha/no-exclusive-tests: error
|
||||
|
|
|
@ -5,4 +5,4 @@ parserOptions:
|
|||
sourceType: module
|
||||
|
||||
rules:
|
||||
n/no-unsupported-features: off
|
||||
node/no-unsupported-features: off
|
|
@ -1,4 +1,4 @@
|
|||
// eslint-disable-next-line n/no-extraneous-require
|
||||
// eslint-disable-next-line node/no-extraneous-require
|
||||
const ip = require('ip');
|
||||
const common = require('./wdio.common.conf');
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// eslint-disable-next-line n/no-extraneous-require
|
||||
// eslint-disable-next-line node/no-extraneous-require
|
||||
const ip = require('ip');
|
||||
const common = require('./wdio.common.conf');
|
||||
const dir =
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// eslint-disable-next-line n/no-extraneous-require
|
||||
// eslint-disable-next-line node/no-extraneous-require
|
||||
const ip = require('ip');
|
||||
const common = require('./wdio.common.conf');
|
||||
|
||||
|
|
Loading…
Reference in New Issue