diff --git a/package.json b/package.json index 4fd815a6..b0a67ebf 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ }, "devDependencies": { "@eslint/js": "^9.17.0", - "@stylistic/eslint-plugin": "^2.12.1", + "@stylistic/eslint-plugin": "^3.0.0", "@types/common-tags": "^1.8.4", "@types/node": "~18.18.0", "@typescript-eslint/rule-tester": "^8.19.1", diff --git a/src/rules/no-floating-observables.ts b/src/rules/no-floating-observables.ts index 569354ec..01d5785a 100644 --- a/src/rules/no-floating-observables.ts +++ b/src/rules/no-floating-observables.ts @@ -8,7 +8,7 @@ const defaultOptions: readonly { const messageBase = 'Observables must be subscribed to, returned, converted to a promise and awaited, ' - + 'or be explicitly marked as ignored with the `void` operator.'; + + 'or be explicitly marked as ignored with the `void` operator.'; const messageBaseNoVoid = 'Observables must be subscribed to, returned, or converted to a promise and awaited.'; diff --git a/src/rules/no-sharereplay.ts b/src/rules/no-sharereplay.ts index bfbe29b7..63c653ee 100644 --- a/src/rules/no-sharereplay.ts +++ b/src/rules/no-sharereplay.ts @@ -39,7 +39,7 @@ export const noSharereplayRule = ruleCreator({ if (allowConfig) { report = node.arguments.length !== 1 - || node.arguments[0].type !== AST_NODE_TYPES.ObjectExpression; + || node.arguments[0].type !== AST_NODE_TYPES.ObjectExpression; } if (report) { context.report({ diff --git a/yarn.lock b/yarn.lock index 0184849f..ea2780f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -805,18 +805,18 @@ __metadata: languageName: node linkType: hard -"@stylistic/eslint-plugin@npm:^2.12.1": - version: 2.12.1 - resolution: "@stylistic/eslint-plugin@npm:2.12.1" +"@stylistic/eslint-plugin@npm:^3.0.0": + version: 3.0.0 + resolution: "@stylistic/eslint-plugin@npm:3.0.0" dependencies: - "@typescript-eslint/utils": "npm:^8.13.0" + "@typescript-eslint/utils": "npm:8.13.0" eslint-visitor-keys: "npm:^4.2.0" espree: "npm:^10.3.0" estraverse: "npm:^5.3.0" picomatch: "npm:^4.0.2" peerDependencies: eslint: ">=8.40.0" - checksum: 10c0/52859e4148a268c8a16cad53dd2d89a641a26e1e61bb4f7368cf5ee1b7fc9904519ade65719096607dc03f22cf2a06d6d363f5b0e8510609e0a2ebd89acc344d + checksum: 10c0/14d4fef1a7c7a1cb21f4b88636d256a85108d0dcb948535d9fe9273eb063ea3a65ec5b33f1d337eb0621a82174fc32177659d1fe1db4c2775885038ea51cb6bc languageName: node linkType: hard @@ -940,6 +940,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/scope-manager@npm:8.13.0": + version: 8.13.0 + resolution: "@typescript-eslint/scope-manager@npm:8.13.0" + dependencies: + "@typescript-eslint/types": "npm:8.13.0" + "@typescript-eslint/visitor-keys": "npm:8.13.0" + checksum: 10c0/1924b3e740e244d98f8a99740b4196d23ae3263303b387c66db94e140455a3132e603a130f3f70fc71e37f4bda5d0c0c67224ae3911908b097ef3f972c136be4 + languageName: node + linkType: hard + "@typescript-eslint/scope-manager@npm:8.19.1, @typescript-eslint/scope-manager@npm:^8.1.0": version: 8.19.1 resolution: "@typescript-eslint/scope-manager@npm:8.19.1" @@ -965,6 +975,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:8.13.0": + version: 8.13.0 + resolution: "@typescript-eslint/types@npm:8.13.0" + checksum: 10c0/bd3f88b738a92b2222f388bcf831357ef8940a763c2c2eb1947767e1051dd2f8bee387020e8cf4c2309e4142353961b659abc2885e30679109a0488b0bfefc23 + languageName: node + linkType: hard + "@typescript-eslint/types@npm:8.19.1": version: 8.19.1 resolution: "@typescript-eslint/types@npm:8.19.1" @@ -972,6 +989,25 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:8.13.0": + version: 8.13.0 + resolution: "@typescript-eslint/typescript-estree@npm:8.13.0" + dependencies: + "@typescript-eslint/types": "npm:8.13.0" + "@typescript-eslint/visitor-keys": "npm:8.13.0" + debug: "npm:^4.3.4" + fast-glob: "npm:^3.3.2" + is-glob: "npm:^4.0.3" + minimatch: "npm:^9.0.4" + semver: "npm:^7.6.0" + ts-api-utils: "npm:^1.3.0" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/2d45bc5ed4ac352bea927167ac28ef23bd13b6ae352ff50e85cddfdc4b06518f1dd4ae5f2495e30d6f62d247987677a4e807065d55829ba28963908a821dc96d + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:8.19.1": version: 8.19.1 resolution: "@typescript-eslint/typescript-estree@npm:8.19.1" @@ -990,7 +1026,21 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/utils@npm:8.19.1, @typescript-eslint/utils@npm:^8.0.0, @typescript-eslint/utils@npm:^8.1.0, @typescript-eslint/utils@npm:^8.13.0": +"@typescript-eslint/utils@npm:8.13.0": + version: 8.13.0 + resolution: "@typescript-eslint/utils@npm:8.13.0" + dependencies: + "@eslint-community/eslint-utils": "npm:^4.4.0" + "@typescript-eslint/scope-manager": "npm:8.13.0" + "@typescript-eslint/types": "npm:8.13.0" + "@typescript-eslint/typescript-estree": "npm:8.13.0" + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + checksum: 10c0/3fc5a7184a949df5f5b64f6af039a1d21ef7fe15f3d88a5d485ccbb535746d18514751143993a5aee287228151be3e326baf8f899a0a0a93368f6f20857ffa6d + languageName: node + linkType: hard + +"@typescript-eslint/utils@npm:8.19.1, @typescript-eslint/utils@npm:^8.0.0, @typescript-eslint/utils@npm:^8.1.0": version: 8.19.1 resolution: "@typescript-eslint/utils@npm:8.19.1" dependencies: @@ -1005,6 +1055,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:8.13.0": + version: 8.13.0 + resolution: "@typescript-eslint/visitor-keys@npm:8.13.0" + dependencies: + "@typescript-eslint/types": "npm:8.13.0" + eslint-visitor-keys: "npm:^3.4.3" + checksum: 10c0/50b35f3cf673aaed940613f0007f7c4558a89ebef15c49824e65b6f084b700fbf01b01a4e701e24bbe651297a39678645e739acd255255f1603867a84bef0383 + languageName: node + linkType: hard + "@typescript-eslint/visitor-keys@npm:8.19.1": version: 8.19.1 resolution: "@typescript-eslint/visitor-keys@npm:8.19.1" @@ -2133,7 +2193,7 @@ __metadata: resolution: "eslint-plugin-rxjs-x@workspace:." dependencies: "@eslint/js": "npm:^9.17.0" - "@stylistic/eslint-plugin": "npm:^2.12.1" + "@stylistic/eslint-plugin": "npm:^3.0.0" "@types/common-tags": "npm:^1.8.4" "@types/node": "npm:~18.18.0" "@typescript-eslint/rule-tester": "npm:^8.19.1"