@typescript-eslint/eslint-plugin 7.11.1-alpha.18 → 7.11.1-alpha.19

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.
@@ -105,7 +105,8 @@ log();
105
105
  ## When Not To Use It
106
106
 
107
107
  If your project dynamically changes `this` scopes around in a way TypeScript has difficulties modeling, this rule may not be viable to use.
108
- One likely difficult pattern is if your code intentionally waits to bind methods after use, such as by passing a `scope: this` along with the method.
108
+ For example, some functions have an additional parameter for specifying the `this` context, such as `Reflect.apply`, and array methods like `Array.prototype.map`.
109
+ This semantic is not easily expressed by TypeScript.
109
110
  You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
110
111
 
111
112
  If you're wanting to use `toBeCalled` and similar matches in `jest` tests, you can disable this rule for your test files in favor of [`eslint-plugin-jest`'s version of this rule](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.mdx).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/eslint-plugin",
3
- "version": "7.11.1-alpha.18",
3
+ "version": "7.11.1-alpha.19",
4
4
  "description": "TypeScript plugin for ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -62,10 +62,10 @@
62
62
  },
63
63
  "dependencies": {
64
64
  "@eslint-community/regexpp": "^4.10.0",
65
- "@typescript-eslint/scope-manager": "7.11.1-alpha.18",
66
- "@typescript-eslint/type-utils": "7.11.1-alpha.18",
67
- "@typescript-eslint/utils": "7.11.1-alpha.18",
68
- "@typescript-eslint/visitor-keys": "7.11.1-alpha.18",
65
+ "@typescript-eslint/scope-manager": "7.11.1-alpha.19",
66
+ "@typescript-eslint/type-utils": "7.11.1-alpha.19",
67
+ "@typescript-eslint/utils": "7.11.1-alpha.19",
68
+ "@typescript-eslint/visitor-keys": "7.11.1-alpha.19",
69
69
  "graphemer": "^1.4.0",
70
70
  "ignore": "^5.3.1",
71
71
  "natural-compare": "^1.4.0",
@@ -76,8 +76,8 @@
76
76
  "@types/marked": "^5.0.2",
77
77
  "@types/mdast": "^4.0.3",
78
78
  "@types/natural-compare": "*",
79
- "@typescript-eslint/rule-schema-to-typescript-types": "7.11.1-alpha.18",
80
- "@typescript-eslint/rule-tester": "7.11.1-alpha.18",
79
+ "@typescript-eslint/rule-schema-to-typescript-types": "7.11.1-alpha.19",
80
+ "@typescript-eslint/rule-tester": "7.11.1-alpha.19",
81
81
  "ajv": "^6.12.6",
82
82
  "cross-env": "^7.0.3",
83
83
  "cross-fetch": "*",