ソースを参照

storage-node-v2: Update lint config.

Shamil Gadelshin 3 年 前
コミット
411f131a64

+ 1 - 0
storage-node-v2/.eslintrc.js

@@ -9,6 +9,7 @@ module.exports = {
   rules: {
     'no-console': 'warn', // use dedicated logger
     'no-unused-vars': 'off', // Required by the typescript rule below
+    'prettier/prettier': 'off', // prettier-eslint conflicts inherited from @joystream/eslint-config
     '@typescript-eslint/no-unused-vars': ['error'],
     '@typescript-eslint/no-floating-promises': 'error',
   },

+ 1 - 1
storage-node-v2/src/services/sync/tasks.ts

@@ -74,7 +74,7 @@ export class DownloadFileTask implements SyncTask {
       const timeoutMs = 30 * 60 * 1000 // 30 min for large files (~ 10 GB)
       // Casting because of:
       // https://stackoverflow.com/questions/38478034/pipe-superagent-response-to-express-response
-      const request = (superagent.get(this.url).timeout(timeoutMs) as unknown) as NodeJS.ReadableStream
+      const request = superagent.get(this.url).timeout(timeoutMs) as unknown as NodeJS.ReadableStream
 
       // We create tempfile first to mitigate partial downloads on app (or remote node) crash.
       // This partial downloads will be cleaned up during the next sync iteration.

+ 1 - 3
storage-node-v2/src/services/webApi/controllers/common.ts

@@ -92,9 +92,7 @@ export function getQueryNodeUrl(res: express.Response): string {
  * This is a helper function. It parses the response object for a variable and
  * throws an error on failure.
  */
-export function getCommandConfig(
-  res: express.Response
-): {
+export function getCommandConfig(res: express.Response): {
   version: string
   userAgent: string
 } {