@typescript-eslint/eslint-plugin 7.8.1-alpha.4 → 7.8.1-alpha.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.
|
@@ -132,5 +132,5 @@ We recommend picking a single option for this rule that works best for your proj
|
|
|
132
132
|
## Related To
|
|
133
133
|
|
|
134
134
|
- [`no-import-type-side-effects`](./no-import-type-side-effects.mdx)
|
|
135
|
-
- [`import/consistent-type-specifier-style`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.
|
|
135
|
+
- [`import/consistent-type-specifier-style`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.md)
|
|
136
136
|
- [`import/no-duplicates` with `{"prefer-inline": true}`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md#inline-type-imports)
|
|
@@ -21,8 +21,6 @@ In addition to the options supported by the `lines-between-class-members` rule i
|
|
|
21
21
|
- `"exceptAfterOverload": true` (default) - Skip checking empty lines after overload class members
|
|
22
22
|
- `"exceptAfterOverload": false` - **do not** skip checking empty lines after overload class members
|
|
23
23
|
|
|
24
|
-
- [See the other options allowed](https://github.com/eslint/eslint/blob/main/docs/rules/lines-between-class-members.md#options)
|
|
25
|
-
|
|
26
24
|
### `exceptAfterOverload: true`
|
|
27
25
|
|
|
28
26
|
Examples of **correct** code for the `{ "exceptAfterOverload": true }` option:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
:::danger Deprecated
|
|
2
2
|
|
|
3
|
-
This rule has been deprecated in favour of the [`import/no-duplicates`](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-duplicates.
|
|
3
|
+
This rule has been deprecated in favour of the [`import/no-duplicates`](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-duplicates.md) rule.
|
|
4
4
|
|
|
5
5
|
:::
|
|
6
6
|
|
|
@@ -76,5 +76,5 @@ If you're not using TypeScript 5.0's `verbatimModuleSyntax` option and your proj
|
|
|
76
76
|
## Related To
|
|
77
77
|
|
|
78
78
|
- [`consistent-type-imports`](./consistent-type-imports.mdx)
|
|
79
|
-
- [`import/consistent-type-specifier-style`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.
|
|
79
|
+
- [`import/consistent-type-specifier-style`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.md)
|
|
80
80
|
- [`import/no-duplicates` with `{"prefer-inline": true}`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md#inline-type-imports)
|
|
@@ -16,7 +16,7 @@ Otherwise, passing class methods around as values can remove type safety by fail
|
|
|
16
16
|
This rule reports when a class method is referenced in an unbound manner.
|
|
17
17
|
|
|
18
18
|
:::note Tip
|
|
19
|
-
If you're working with `jest`, you can use [`eslint-plugin-jest`'s version of this rule](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.
|
|
19
|
+
If you're working with `jest`, you can use [`eslint-plugin-jest`'s version of this rule](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.md) to lint your test files, which knows when it's ok to pass an unbound method to `expect` calls.
|
|
20
20
|
:::
|
|
21
21
|
|
|
22
22
|
## Examples
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
|
3
|
-
"version": "7.8.1-alpha.
|
|
3
|
+
"version": "7.8.1-alpha.6",
|
|
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.8.1-alpha.
|
|
66
|
-
"@typescript-eslint/type-utils": "7.8.1-alpha.
|
|
67
|
-
"@typescript-eslint/utils": "7.8.1-alpha.
|
|
68
|
-
"@typescript-eslint/visitor-keys": "7.8.1-alpha.
|
|
65
|
+
"@typescript-eslint/scope-manager": "7.8.1-alpha.6",
|
|
66
|
+
"@typescript-eslint/type-utils": "7.8.1-alpha.6",
|
|
67
|
+
"@typescript-eslint/utils": "7.8.1-alpha.6",
|
|
68
|
+
"@typescript-eslint/visitor-keys": "7.8.1-alpha.6",
|
|
69
69
|
"debug": "^4.3.4",
|
|
70
70
|
"graphemer": "^1.4.0",
|
|
71
71
|
"ignore": "^5.3.1",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"@types/marked": "*",
|
|
79
79
|
"@types/mdast": "^4.0.3",
|
|
80
80
|
"@types/natural-compare": "*",
|
|
81
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "7.8.1-alpha.
|
|
82
|
-
"@typescript-eslint/rule-tester": "7.8.1-alpha.
|
|
81
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "7.8.1-alpha.6",
|
|
82
|
+
"@typescript-eslint/rule-tester": "7.8.1-alpha.6",
|
|
83
83
|
"ajv": "^6.12.6",
|
|
84
84
|
"chalk": "^5.3.0",
|
|
85
85
|
"cross-env": "^7.0.3",
|