eslint-plugin-rxjs-x 0.7.5 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// package.json
2
2
  var name = "eslint-plugin-rxjs-x";
3
- var version = "0.7.5";
3
+ var version = "0.7.6";
4
4
 
5
5
  // src/configs/recommended.ts
6
6
  var createRecommendedConfig = (plugin2) => ({
@@ -2032,7 +2032,7 @@ var noImplicitAnyCatchRule = ruleCreator({
2032
2032
  const sourceCode = context.sourceCode;
2033
2033
  function checkCallback(callback) {
2034
2034
  if (isArrowFunctionExpression(callback) || isFunctionExpression(callback)) {
2035
- const [param] = callback.params;
2035
+ const [param, ...restParams] = callback.params;
2036
2036
  if (!param) {
2037
2037
  return;
2038
2038
  }
@@ -2078,7 +2078,7 @@ var noImplicitAnyCatchRule = ruleCreator({
2078
2078
  }
2079
2079
  } else {
2080
2080
  let fix2 = function(fixer) {
2081
- if (isParenthesised(sourceCode, param)) {
2081
+ if (isParenthesised(sourceCode, param) || restParams.length > 0) {
2082
2082
  return fixer.insertTextAfter(param, ": unknown");
2083
2083
  }
2084
2084
  return [
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var name = "eslint-plugin-rxjs-x";
3
- var version = "0.7.5";
3
+ var version = "0.7.6";
4
4
 
5
5
  // src/configs/recommended.ts
6
6
  var createRecommendedConfig = (plugin2) => ({
@@ -2032,7 +2032,7 @@ var noImplicitAnyCatchRule = ruleCreator({
2032
2032
  const sourceCode = context.sourceCode;
2033
2033
  function checkCallback(callback) {
2034
2034
  if (isArrowFunctionExpression(callback) || isFunctionExpression(callback)) {
2035
- const [param] = callback.params;
2035
+ const [param, ...restParams] = callback.params;
2036
2036
  if (!param) {
2037
2037
  return;
2038
2038
  }
@@ -2078,7 +2078,7 @@ var noImplicitAnyCatchRule = ruleCreator({
2078
2078
  }
2079
2079
  } else {
2080
2080
  let fix2 = function(fixer) {
2081
- if (isParenthesised(sourceCode, param)) {
2081
+ if (isParenthesised(sourceCode, param) || restParams.length > 0) {
2082
2082
  return fixer.insertTextAfter(param, ": unknown");
2083
2083
  }
2084
2084
  return [
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "eslint-plugin-rxjs-x",
3
3
  "type": "commonjs",
4
- "version": "0.7.5",
5
- "packageManager": "yarn@4.9.1+sha512.f95ce356460e05be48d66401c1ae64ef84d163dd689964962c6888a9810865e39097a5e9de748876c2e0bf89b232d583c33982773e9903ae7a76257270986538",
4
+ "version": "0.7.6",
5
+ "packageManager": "yarn@4.9.2+sha512.1fc009bc09d13cfd0e19efa44cbfc2b9cf6ca61482725eb35bbc5e257e093ebf4130db6dfe15d604ff4b79efd8e1e8e99b25fa7d0a6197c9f9826358d4d65c3c",
6
6
  "description": "ESLint v9+ plugin for RxJS",
7
7
  "author": "Jason Weinzierl <weinzierljason@gmail.com>",
8
8
  "license": "MIT",
@@ -72,29 +72,29 @@
72
72
  }
73
73
  },
74
74
  "devDependencies": {
75
- "@eslint/js": "^9.28.0",
76
- "@stylistic/eslint-plugin": "^4.4.0",
75
+ "@eslint/js": "^9.29.0",
76
+ "@stylistic/eslint-plugin": "^4.4.1",
77
77
  "@types/common-tags": "^1.8.4",
78
78
  "@types/node": "~18.18.0",
79
- "@typescript-eslint/rule-tester": "^8.33.1",
79
+ "@typescript-eslint/rule-tester": "^8.34.1",
80
80
  "@typescript/vfs": "^1.6.1",
81
- "@vitest/coverage-v8": "^3.2.0",
82
- "@vitest/eslint-plugin": "^1.2.1",
81
+ "@vitest/coverage-v8": "^3.2.3",
82
+ "@vitest/eslint-plugin": "^1.2.7",
83
83
  "bumpp": "^10.1.1",
84
- "eslint": "^9.28.0",
84
+ "eslint": "^9.29.0",
85
85
  "eslint-config-flat-gitignore": "^2.1.0",
86
86
  "eslint-doc-generator": "^2.1.2",
87
- "eslint-import-resolver-typescript": "^4.4.2",
87
+ "eslint-import-resolver-typescript": "^4.4.3",
88
88
  "eslint-plugin-eslint-plugin": "^6.4.0",
89
- "eslint-plugin-import-x": "^4.15.0",
90
- "eslint-plugin-n": "^17.19.0",
89
+ "eslint-plugin-import-x": "^4.15.2",
90
+ "eslint-plugin-n": "^17.20.0",
91
91
  "markdownlint-cli2": "^0.18.1",
92
92
  "rxjs": "^7.8.2",
93
93
  "tsup": "^8.5.0",
94
94
  "typescript": "~5.8.3",
95
- "typescript-eslint": "^8.33.1",
95
+ "typescript-eslint": "^8.34.1",
96
96
  "vite": "^6.3.5",
97
- "vitest": "^3.2.0"
97
+ "vitest": "^3.2.3"
98
98
  },
99
99
  "engines": {
100
100
  "node": "^18.18.0 || ^20.9.0 || >= 21.1.0"