@typescript-eslint/eslint-plugin 7.0.2-alpha.1 → 7.0.2-alpha.11
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.
|
@@ -100,4 +100,4 @@ If you strongly prefer to have explicit types regardless of whether they can be
|
|
|
100
100
|
|
|
101
101
|
## Further Reading
|
|
102
102
|
|
|
103
|
-
- [
|
|
103
|
+
- [TypeScript Inference](https://www.typescriptlang.org/docs/handbook/type-inference.html)
|
|
@@ -9,7 +9,7 @@ description: 'Enforce using `@ts-expect-error` over `@ts-ignore`.'
|
|
|
9
9
|
TypeScript allows you to suppress all errors on a line by placing a comment starting with `@ts-ignore` or `@ts-expect-error` immediately before the erroring line.
|
|
10
10
|
The two directives work the same, except `@ts-expect-error` causes a type error if placed before a line that's not erroring in the first place.
|
|
11
11
|
|
|
12
|
-
This means
|
|
12
|
+
This means it's easy for `@ts-ignore`s to be forgotten about, and remain in code even after the error they were suppressing is fixed.
|
|
13
13
|
This is dangerous, as if a new error arises on that line it'll be suppressed by the forgotten about `@ts-ignore`, and so be missed.
|
|
14
14
|
|
|
15
15
|
## Examples
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
|
3
|
-
"version": "7.0.2-alpha.
|
|
3
|
+
"version": "7.0.2-alpha.11",
|
|
4
4
|
"description": "TypeScript plugin for ESLint",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@eslint-community/regexpp": "^4.5.1",
|
|
64
|
-
"@typescript-eslint/scope-manager": "7.0.2-alpha.
|
|
65
|
-
"@typescript-eslint/type-utils": "7.0.2-alpha.
|
|
66
|
-
"@typescript-eslint/utils": "7.0.2-alpha.
|
|
67
|
-
"@typescript-eslint/visitor-keys": "7.0.2-alpha.
|
|
64
|
+
"@typescript-eslint/scope-manager": "7.0.2-alpha.11",
|
|
65
|
+
"@typescript-eslint/type-utils": "7.0.2-alpha.11",
|
|
66
|
+
"@typescript-eslint/utils": "7.0.2-alpha.11",
|
|
67
|
+
"@typescript-eslint/visitor-keys": "7.0.2-alpha.11",
|
|
68
68
|
"debug": "^4.3.4",
|
|
69
69
|
"graphemer": "^1.4.0",
|
|
70
70
|
"ignore": "^5.2.4",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"@types/debug": "*",
|
|
77
77
|
"@types/marked": "*",
|
|
78
78
|
"@types/natural-compare": "*",
|
|
79
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "7.0.2-alpha.
|
|
80
|
-
"@typescript-eslint/rule-tester": "7.0.2-alpha.
|
|
79
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "7.0.2-alpha.11",
|
|
80
|
+
"@typescript-eslint/rule-tester": "7.0.2-alpha.11",
|
|
81
81
|
"ajv": "^6.12.6",
|
|
82
82
|
"chalk": "^5.3.0",
|
|
83
83
|
"cross-env": "^7.0.3",
|