From 3e464580ea04c54b75fb3bd78e940ea09eeb57b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Thu, 24 Jun 2021 10:23:32 +0200 Subject: [PATCH] Fixing eslint ignore broken by Prettier --- back/package.json | 4 ++-- back/src/Server/server/utils.ts | 2 +- pusher/src/Server/server/utils.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/back/package.json b/back/package.json index 5bf5d031..7015b9b8 100644 --- a/back/package.json +++ b/back/package.json @@ -10,8 +10,8 @@ "runprod": "node --max-old-space-size=4096 ./dist/server.js", "profile": "tsc && node --prof ./dist/server.js", "test": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json", - "lint": "node_modules/.bin/eslint src/ . --ext .ts", - "fix": "node_modules/.bin/eslint --fix src/ . --ext .ts", + "lint": "DEBUG= node_modules/.bin/eslint src/ . --ext .ts", + "fix": "DEBUG= node_modules/.bin/eslint --fix src/ . --ext .ts", "precommit": "lint-staged", "pretty": "yarn prettier --write 'src/**/*.{ts,tsx}'", "pretty-check": "yarn prettier --check 'src/**/*.{ts,tsx}'" diff --git a/back/src/Server/server/utils.ts b/back/src/Server/server/utils.ts index 9816de54..dc813064 100644 --- a/back/src/Server/server/utils.ts +++ b/back/src/Server/server/utils.ts @@ -1,7 +1,7 @@ import { ReadStream } from "fs"; +// eslint-disable-next-line @typescript-eslint/no-explicit-any function extend(who: any, from: any, overwrite = true) { - // eslint-disable-line @typescript-eslint/no-explicit-any const ownProps = Object.getOwnPropertyNames(Object.getPrototypeOf(from)).concat(Object.keys(from)); ownProps.forEach((prop) => { if (prop === "constructor" || from[prop] === undefined) return; diff --git a/pusher/src/Server/server/utils.ts b/pusher/src/Server/server/utils.ts index 9816de54..dc813064 100644 --- a/pusher/src/Server/server/utils.ts +++ b/pusher/src/Server/server/utils.ts @@ -1,7 +1,7 @@ import { ReadStream } from "fs"; +// eslint-disable-next-line @typescript-eslint/no-explicit-any function extend(who: any, from: any, overwrite = true) { - // eslint-disable-line @typescript-eslint/no-explicit-any const ownProps = Object.getOwnPropertyNames(Object.getPrototypeOf(from)).concat(Object.keys(from)); ownProps.forEach((prop) => { if (prop === "constructor" || from[prop] === undefined) return;