eslint-plugin-complete 1.0.6 → 1.0.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"no-mutable-return.d.ts","sourceRoot":"","sources":["../../src/rules/no-mutable-return.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAMvD,KAAK,UAAU,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,CAAC;AAE/D,eAAO,MAAM,eAAe,wHAsD1B,CAAC"}
1
+ {"version":3,"file":"no-mutable-return.d.ts","sourceRoot":"","sources":["../../src/rules/no-mutable-return.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAMvD,KAAK,UAAU,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,CAAC;AAE/D,eAAO,MAAM,eAAe,wHAoD1B,CAAC"}
@@ -39,10 +39,11 @@ export const noMutableReturn = createRule({
39
39
  }
40
40
  }
41
41
  }
42
+ // We explicitly do not include `TSESTree.ArrowFunctionExpression` because arrow functions are
43
+ // commonly used inside of other functions, which compartmentalize the mutations.
42
44
  return {
43
45
  FunctionDeclaration: checkReturnType,
44
46
  FunctionExpression: checkReturnType,
45
- ArrowFunctionExpression: checkReturnType,
46
47
  };
47
48
  },
48
49
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-complete",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "An ESLint plugin that contains useful rules.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -49,8 +49,8 @@
49
49
  "typescript-eslint": "^8.8.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@babel/core": "^7.25.7",
53
- "@babel/preset-env": "^7.25.7",
52
+ "@babel/core": "^7.25.8",
53
+ "@babel/preset-env": "^7.25.8",
54
54
  "@babel/preset-typescript": "^7.25.7",
55
55
  "@types/jest": "^29.5.13",
56
56
  "@types/node": "^22.7.5",