From f52f1cadac04eb3b01780532009fd7ef0a47f002 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Apr 2022 13:14:43 +0200 Subject: [PATCH] chore(deps): update dependency eslint-config-airbnb-typescript to v16.1.0 (#1147) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency eslint-config-airbnb-typescript to v16.1.0 * chore: Update a few places with eslint-ignore due to new linter rules for optional parameters Co-authored-by: Renovate Bot Co-authored-by: sighphyre Co-authored-by: Ivar Conradi Ă˜sthus --- package.json | 3 ++- src/lib/middleware/demo-authentication.ts | 2 +- src/lib/middleware/no-authentication.ts | 1 + src/lib/services/feature-toggle-service.ts | 2 +- src/lib/services/state-service.ts | 2 +- yarn.lock | 8 ++++---- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 0f432b132a..a415c4c1f9 100644 --- a/package.json +++ b/package.json @@ -144,7 +144,8 @@ "del-cli": "4.0.1", "eslint": "8.13.0", "eslint-config-airbnb-base": "15.0.0", - "eslint-config-airbnb-typescript": "16.0.0", + "eslint-config-airbnb-typescript": "16.1.0", + "eslint-config-prettier": "8.3.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-import": "2.26.0", "eslint-plugin-prettier": "4.0.0", diff --git a/src/lib/middleware/demo-authentication.ts b/src/lib/middleware/demo-authentication.ts index e35d4128e1..160d676f28 100644 --- a/src/lib/middleware/demo-authentication.ts +++ b/src/lib/middleware/demo-authentication.ts @@ -7,7 +7,7 @@ import { ApiTokenType } from '../types/models/api-token'; function demoAuthentication( app: Application, - basePath: string = '', + basePath: string = '', // eslint-disable-line { userService }: Pick, { authentication }: Pick, ): void { diff --git a/src/lib/middleware/no-authentication.ts b/src/lib/middleware/no-authentication.ts index 3d7eaacc65..eb2a6c19e1 100644 --- a/src/lib/middleware/no-authentication.ts +++ b/src/lib/middleware/no-authentication.ts @@ -1,6 +1,7 @@ import { Application } from 'express'; import NoAuthUser from '../types/no-auth-user'; +// eslint-disable-next-line function noneAuthentication(basePath = '', app: Application): void { app.use(`${basePath}/api/admin/`, (req, res, next) => { // @ts-ignore diff --git a/src/lib/services/feature-toggle-service.ts b/src/lib/services/feature-toggle-service.ts index becafa1970..7bd7ed0233 100644 --- a/src/lib/services/feature-toggle-service.ts +++ b/src/lib/services/feature-toggle-service.ts @@ -604,7 +604,7 @@ class FeatureToggleService { featureName: string, projectId: string, newFeatureName: string, - replaceGroupId: boolean = true, + replaceGroupId: boolean = true, // eslint-disable-line userName: string, ): Promise { this.logger.info( diff --git a/src/lib/services/state-service.ts b/src/lib/services/state-service.ts index f9f2fbf9b1..ef539bb938 100644 --- a/src/lib/services/state-service.ts +++ b/src/lib/services/state-service.ts @@ -596,7 +596,7 @@ export default class StateService { async importTagTypes( tagTypes: ITagType[], keepExisting: boolean, - oldTagTypes: ITagType[] = [], + oldTagTypes: ITagType[] = [], // eslint-disable-line userName: string, ): Promise { const tagTypesToInsert = tagTypes.filter((tagType) => diff --git a/yarn.lock b/yarn.lock index 56f9186314..d8d057b3cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2768,10 +2768,10 @@ eslint-config-airbnb-base@15.0.0, eslint-config-airbnb-base@^15.0.0: object.entries "^1.1.5" semver "^6.3.0" -eslint-config-airbnb-typescript@16.0.0: - version "16.0.0" - resolved "https://registry.npmjs.org/eslint-config-airbnb-typescript/-/eslint-config-airbnb-typescript-16.0.0.tgz" - integrity sha512-qDOyD0YYZo5Us1YvOnWig2Ly/+IlQKmMZpnqKnJgVtHdK8SkjaSyVBHKbD41dEaQxk8vRVGBC94PuR2ceSwbLQ== +eslint-config-airbnb-typescript@16.1.0: + version "16.1.0" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-typescript/-/eslint-config-airbnb-typescript-16.1.0.tgz#f75a6b4f3bb679eef34c3c930359c2ca9bc3f09c" + integrity sha512-W5Cq20KpEx5ZLC54bnVrC37zq2+WD956Kp/Ma3nYFRjT1v9KM63v+DPkrrmmrVqrlDKaD0ivm/qeYmyHV6qKlw== dependencies: eslint-config-airbnb-base "^15.0.0"