@taiga-ui/eslint-plugin-experience-next 0.457.0 → 0.458.0

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.
Files changed (2) hide show
  1. package/index.esm.js +10 -0
  2. package/package.json +3 -3
package/index.esm.js CHANGED
@@ -2209,6 +2209,16 @@ const rule$5 = createRule$7({
2209
2209
  typeChecker.typeToString(inferredType)) {
2210
2210
  return;
2211
2211
  }
2212
+ // If the initializer is a function expression or arrow function without
2213
+ // its own return type annotation, the variable annotation may be the
2214
+ // only explicit return type declaration (satisfying
2215
+ // @typescript-eslint/explicit-function-return-type via
2216
+ // allowTypedFunctionExpressions). Removing it would break that rule.
2217
+ if ((value.type === AST_NODE_TYPES.ArrowFunctionExpression ||
2218
+ value.type === AST_NODE_TYPES.FunctionExpression) &&
2219
+ !value.returnType) {
2220
+ return;
2221
+ }
2212
2222
  // If the initializer is a call to a generic function with no explicit
2213
2223
  // type arguments, the type parameters may be inferred from the
2214
2224
  // contextual return type provided by this annotation. Removing the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/eslint-plugin-experience-next",
3
- "version": "0.457.0",
3
+ "version": "0.458.0",
4
4
  "description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,7 +43,7 @@
43
43
  "eslint": "^9.39.2",
44
44
  "eslint-config-prettier": "^10.1.7",
45
45
  "eslint-plugin-compat": "^7.0.1",
46
- "eslint-plugin-cypress": "^6.2.2",
46
+ "eslint-plugin-cypress": "^6.2.3",
47
47
  "eslint-plugin-de-morgan": "^2.1.1",
48
48
  "eslint-plugin-decorator-position": "^6.0.0",
49
49
  "eslint-plugin-file-progress": "^3.0.2",
@@ -55,7 +55,7 @@
55
55
  "eslint-plugin-prettier": "^5.5.5",
56
56
  "eslint-plugin-promise": "^7.2.1",
57
57
  "eslint-plugin-regexp": "^3.1.0",
58
- "eslint-plugin-simple-import-sort": "^12.1.1",
58
+ "eslint-plugin-simple-import-sort": "^13.0.0",
59
59
  "eslint-plugin-sonarjs": "^4.0.2",
60
60
  "eslint-plugin-unicorn": "^64.0.0",
61
61
  "eslint-plugin-unused-imports": "^4.4.1",