From 3245d749e590516cdb210b895a522a2a819bbb1a Mon Sep 17 00:00:00 2001 From: PierreDemailly <39910767+PierreDemailly@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:24:48 +0100 Subject: [PATCH] chore: update @openally/config.eslint (#335) --- package-lock.json | 54 +++++++++++++---------------- package.json | 2 +- src/agent/src/notifiers/notifier.ts | 4 +-- src/logql/src/labelFilters.ts | 2 +- src/logql/src/streamSelector.ts | 2 +- src/logql/test/logql.spec.ts | 2 +- 6 files changed, 30 insertions(+), 36 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5fc4a7e..f3be86f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "src/pattern" ], "devDependencies": { - "@openally/config.eslint": "^1.1.0", + "@openally/config.eslint": "^1.3.0", "@openally/config.typescript": "^1.0.3", "@types/node": "^22.10.5", "c8": "^10.1.3", @@ -1328,17 +1328,17 @@ "integrity": "sha512-0o+C0mZGDts+ToAxXPg3KGa1PHnVNHGRn4p5SCHGn8GLxSPK1w6T5+eGa6JQa+ddyW46KvcV0jvZ2MhyoGB1pA==" }, "node_modules/@openally/config.eslint": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@openally/config.eslint/-/config.eslint-1.1.0.tgz", - "integrity": "sha512-orReDG8B63elnrlOK5wwrf8cLR3ztmC9WPE6UkuSPNAsO6O9Eoi+mW3sDl2/S46o7h4unSymhh5KGcAC9LkMOg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@openally/config.eslint/-/config.eslint-1.3.0.tgz", + "integrity": "sha512-b74n94X6gKuIh98MaAn9n12pF07DnljkfO2pNYUWSbpNfUdZFb71HnrXFCJ6oZNgl17+sq+4sqonnQmjzfD9rg==", "dev": true, "license": "MIT", "dependencies": { - "@stylistic/eslint-plugin": "^2.6.2", - "@typescript-eslint/parser": "8.2.0", - "eslint": "^9.9.0", - "globals": "^15.9.0", - "typescript-eslint": "^8.1.0" + "@eslint/js": "^9.17.0", + "@stylistic/eslint-plugin": "^2.12.1", + "eslint": "^9.17.0", + "globals": "^15.14.0", + "typescript-eslint": "^8.19.0" } }, "node_modules/@openally/config.eslint/node_modules/@typescript-eslint/eslint-plugin": { @@ -1440,6 +1440,7 @@ "integrity": "sha512-j3Di+o0lHgPrb7FxL3fdEy6LJ/j2NE8u+AP/5cQ9SKb+JLH6V6UHDqJ+e0hXBkHP1wn1YDFjYCS9LBQsZDlDEg==", "dev": true, "license": "BSD-2-Clause", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.2.0", "@typescript-eslint/types": "8.2.0", @@ -1469,6 +1470,7 @@ "integrity": "sha512-OFn80B38yD6WwpoHU2Tz/fTz7CgFqInllBoC3WP+/jLbTb4gGPTy9HBSTsbDWkMdN55XlVU0mMDYAtgvlUspGw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/types": "8.2.0", "@typescript-eslint/visitor-keys": "8.2.0" @@ -1583,6 +1585,7 @@ "integrity": "sha512-6a9QSK396YqmiBKPkJtxsgZZZVjYQ6wQ/TlI0C65z7vInaETuC6HAHD98AGLC8DyIPqHytvNuS8bBVvNLKyqvQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -1597,6 +1600,7 @@ "integrity": "sha512-kiG4EDUT4dImplOsbh47B1QnNmXSoUqOjWDvCJw/o8LgfD0yr7k2uy54D5Wm0j4t71Ge1NkynGhpWdS0dEIAUA==", "dev": true, "license": "BSD-2-Clause", + "peer": true, "dependencies": { "@typescript-eslint/types": "8.2.0", "@typescript-eslint/visitor-keys": "8.2.0", @@ -1740,6 +1744,7 @@ "integrity": "sha512-sbgsPMW9yLvS7IhCi8IpuK1oBmtbWUNP+hBdwl/I9nzqVsszGnNGti5r9dUtF5RLivHUFFIdRvLiTsPhzSyJ3Q==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/types": "8.2.0", "eslint-visitor-keys": "^3.4.3" @@ -1758,6 +1763,7 @@ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "license": "Apache-2.0", + "peer": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -4701,15 +4707,6 @@ "node": ">=8" } }, - "node_modules/esmock": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/esmock/-/esmock-2.6.9.tgz", - "integrity": "sha512-SJ5YnoWi8yuGghBrupScARmIcUh2A2a2gIfdVRtQ2MQpQo91wMWHx/fsN0ZDERLAUso1ea4Q/9CKCL88O5MEpg==", - "dev": true, - "engines": { - "node": ">=14.16.0" - } - }, "node_modules/espree": { "version": "10.3.0", "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", @@ -10109,7 +10106,7 @@ "testcontainers": "^10.16.0" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "src/agent/node_modules/@myunisoft/httpie": { @@ -10158,7 +10155,7 @@ "dotenv": "^16.4.7" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "src/config/node_modules/@myunisoft/httpie": { @@ -10203,7 +10200,7 @@ "@myunisoft/httpie": "^5.0.1" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "src/discord/node_modules/@myunisoft/httpie": { @@ -10242,18 +10239,15 @@ "version": "2.2.0", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=20" } }, "src/morphix": { "name": "@sigyn/morphix", "version": "1.1.0", "license": "MIT", - "devDependencies": { - "esmock": "^2.6.9" - }, "engines": { - "node": ">=18" + "node": ">=20" } }, "src/notifiers": { @@ -10261,7 +10255,7 @@ "version": "1.0.0", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=20" }, "peerDependencies": { "@myunisoft/httpie": "^2.0.3" @@ -10275,7 +10269,7 @@ "tsd": "^0.31.2" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "src/slack": { @@ -10287,7 +10281,7 @@ "@slack/types": "^2.14.0" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "src/slack/node_modules/@myunisoft/httpie": { @@ -10329,7 +10323,7 @@ "@myunisoft/httpie": "^5.0.1" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "src/teams/node_modules/@myunisoft/httpie": { diff --git a/package.json b/package.json index 23414b5..226d92f 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "src/pattern" ], "devDependencies": { - "@openally/config.eslint": "^1.1.0", + "@openally/config.eslint": "^1.3.0", "@openally/config.typescript": "^1.0.3", "@types/node": "^22.10.5", "c8": "^10.1.3", diff --git a/src/agent/src/notifiers/notifier.ts b/src/agent/src/notifiers/notifier.ts index 6471e78..409b224 100644 --- a/src/agent/src/notifiers/notifier.ts +++ b/src/agent/src/notifiers/notifier.ts @@ -59,11 +59,11 @@ export class Notifier { ); } - protected sendNotification(alert: T): void { + protected sendNotification(_alert: T): void { throw new Error("sendNotification must be implemented"); } - protected nonUniqueMatcher(notification: T, newNotifications: T): boolean { + protected nonUniqueMatcher(_notification: T, _newNotifications: T): boolean { throw new Error("nonUniqueMatcher must be implemented"); } diff --git a/src/logql/src/labelFilters.ts b/src/logql/src/labelFilters.ts index d72bfe3..fa875f6 100644 --- a/src/logql/src/labelFilters.ts +++ b/src/logql/src/labelFilters.ts @@ -10,7 +10,7 @@ export interface LabelFilter { operator: LabelFilterOperator; } -export type LabelValue = Partial & Pick +export type LabelValue = Partial & Pick; export class LabelFilters extends Map { static removeStreamSelector(query: string) { diff --git a/src/logql/src/streamSelector.ts b/src/logql/src/streamSelector.ts index bcc6432..bc9d4ea 100644 --- a/src/logql/src/streamSelector.ts +++ b/src/logql/src/streamSelector.ts @@ -11,7 +11,7 @@ export interface StreamSelectorValue { } export type LabelValue = Partial & Pick; -export type StreamSelectorOp = { [kEqual]?: string | RegExp } | { [kNotEqual]?: string | RegExp }; +export type StreamSelectorOp = { [kEqual]?: string | RegExp; } | { [kNotEqual]?: string | RegExp; }; export class StreamSelector extends Map { static Equal(value: string | RegExp) { diff --git a/src/logql/test/logql.spec.ts b/src/logql/test/logql.spec.ts index 7627226..5ffd2d3 100644 --- a/src/logql/test/logql.spec.ts +++ b/src/logql/test/logql.spec.ts @@ -109,7 +109,7 @@ describe("LogQL", () => { it("should parse a LogQL with lineFilter, labelFilter and parseExpression", () => { const logql = new LogQL( - // eslint-disable-next-line max-len + // eslint-disable-next-line @stylistic/max-len `{app="discussion",env="production"} |= "returned "GET /rooms/availableUsers" | regexp \`((?P[0-9.]+)ms)\` | execTime > 500` );