@typescript-eslint/eslint-plugin 8.9.1-alpha.1 → 8.9.1-alpha.10

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 (100) hide show
  1. package/dist/rules/class-literal-property-style.js +1 -0
  2. package/dist/rules/class-literal-property-style.js.map +1 -1
  3. package/dist/rules/class-methods-use-this.js +3 -3
  4. package/dist/rules/class-methods-use-this.js.map +1 -1
  5. package/dist/rules/consistent-generic-constructors.js +1 -0
  6. package/dist/rules/consistent-generic-constructors.js.map +1 -1
  7. package/dist/rules/consistent-indexed-object-style.js +1 -0
  8. package/dist/rules/consistent-indexed-object-style.js.map +1 -1
  9. package/dist/rules/consistent-type-definitions.js +1 -0
  10. package/dist/rules/consistent-type-definitions.js.map +1 -1
  11. package/dist/rules/consistent-type-exports.js +10 -4
  12. package/dist/rules/consistent-type-exports.js.map +1 -1
  13. package/dist/rules/explicit-member-accessibility.js +5 -1
  14. package/dist/rules/explicit-member-accessibility.js.map +1 -1
  15. package/dist/rules/explicit-module-boundary-types.js.map +1 -1
  16. package/dist/rules/naming-convention.js +2 -1
  17. package/dist/rules/naming-convention.js.map +1 -1
  18. package/dist/rules/no-invalid-void-type.js +7 -3
  19. package/dist/rules/no-invalid-void-type.js.map +1 -1
  20. package/dist/rules/no-misused-promises.js +7 -1
  21. package/dist/rules/no-misused-promises.js.map +1 -1
  22. package/dist/rules/no-restricted-imports.js +1 -1
  23. package/dist/rules/no-restricted-imports.js.map +1 -1
  24. package/dist/rules/no-restricted-types.js +5 -4
  25. package/dist/rules/no-restricted-types.js.map +1 -1
  26. package/dist/rules/no-unnecessary-condition.js +0 -1
  27. package/dist/rules/no-unnecessary-condition.js.map +1 -1
  28. package/dist/rules/no-unsafe-argument.js +2 -1
  29. package/dist/rules/no-unsafe-argument.js.map +1 -1
  30. package/dist/rules/no-use-before-define.js +4 -1
  31. package/dist/rules/no-use-before-define.js.map +1 -1
  32. package/dist/rules/prefer-destructuring.js +2 -0
  33. package/dist/rules/prefer-destructuring.js.map +1 -1
  34. package/dist/rules/prefer-nullish-coalescing.js +18 -4
  35. package/dist/rules/prefer-nullish-coalescing.js.map +1 -1
  36. package/dist/rules/sort-type-constituents.js +3 -3
  37. package/dist/rules/sort-type-constituents.js.map +1 -1
  38. package/dist/rules/strict-boolean-expressions.js +5 -4
  39. package/dist/rules/strict-boolean-expressions.js.map +1 -1
  40. package/docs/rules/ban-ts-comment.mdx +4 -0
  41. package/docs/rules/class-methods-use-this.mdx +4 -1
  42. package/docs/rules/consistent-generic-constructors.mdx +6 -4
  43. package/docs/rules/consistent-indexed-object-style.mdx +6 -4
  44. package/docs/rules/consistent-type-assertions.mdx +4 -2
  45. package/docs/rules/consistent-type-definitions.mdx +8 -4
  46. package/docs/rules/consistent-type-exports.mdx +2 -1
  47. package/docs/rules/consistent-type-imports.mdx +7 -4
  48. package/docs/rules/dot-notation.mdx +5 -3
  49. package/docs/rules/explicit-function-return-type.mdx +16 -0
  50. package/docs/rules/explicit-member-accessibility.mdx +7 -2
  51. package/docs/rules/explicit-module-boundary-types.mdx +22 -12
  52. package/docs/rules/max-params.mdx +1 -1
  53. package/docs/rules/method-signature-style.mdx +4 -2
  54. package/docs/rules/no-base-to-string.mdx +5 -3
  55. package/docs/rules/no-confusing-void-expression.mdx +4 -0
  56. package/docs/rules/no-duplicate-type-constituents.mdx +4 -0
  57. package/docs/rules/no-empty-interface.mdx +3 -1
  58. package/docs/rules/no-empty-object-type.mdx +8 -3
  59. package/docs/rules/no-explicit-any.mdx +3 -1
  60. package/docs/rules/no-extraneous-class.mdx +4 -4
  61. package/docs/rules/no-floating-promises.mdx +12 -6
  62. package/docs/rules/no-inferrable-types.mdx +2 -2
  63. package/docs/rules/no-invalid-void-type.mdx +4 -3
  64. package/docs/rules/no-magic-numbers.mdx +8 -0
  65. package/docs/rules/no-meaningless-void-operator.mdx +1 -1
  66. package/docs/rules/no-misused-promises.mdx +11 -1
  67. package/docs/rules/no-namespace.mdx +4 -0
  68. package/docs/rules/no-redeclare.mdx +3 -1
  69. package/docs/rules/no-require-imports.mdx +6 -2
  70. package/docs/rules/no-restricted-imports.mdx +4 -1
  71. package/docs/rules/no-restricted-types.mdx +1 -1
  72. package/docs/rules/no-shadow.mdx +4 -2
  73. package/docs/rules/no-this-alias.mdx +4 -0
  74. package/docs/rules/no-type-alias.mdx +8 -8
  75. package/docs/rules/no-unnecessary-boolean-literal-compare.mdx +4 -0
  76. package/docs/rules/no-unnecessary-condition.mdx +6 -0
  77. package/docs/rules/no-unnecessary-type-assertion.mdx +2 -0
  78. package/docs/rules/no-use-before-define.mdx +3 -3
  79. package/docs/rules/no-var-requires.mdx +2 -0
  80. package/docs/rules/parameter-properties.mdx +6 -2
  81. package/docs/rules/prefer-destructuring.mdx +1 -1
  82. package/docs/rules/prefer-literal-enum-member.mdx +1 -1
  83. package/docs/rules/prefer-nullish-coalescing.mdx +6 -4
  84. package/docs/rules/prefer-optional-chain.mdx +37 -28
  85. package/docs/rules/prefer-readonly-parameter-types.mdx +8 -4
  86. package/docs/rules/prefer-readonly.mdx +1 -1
  87. package/docs/rules/prefer-string-starts-ends-with.mdx +2 -0
  88. package/docs/rules/promise-function-async.mdx +8 -9
  89. package/docs/rules/require-array-sort-compare.mdx +2 -0
  90. package/docs/rules/restrict-plus-operands.mdx +12 -0
  91. package/docs/rules/restrict-template-expressions.mdx +9 -7
  92. package/docs/rules/return-await.mdx +4 -0
  93. package/docs/rules/sort-type-constituents.mdx +5 -3
  94. package/docs/rules/strict-boolean-expressions.mdx +22 -12
  95. package/docs/rules/switch-exhaustiveness-check.mdx +6 -2
  96. package/docs/rules/triple-slash-reference.mdx +6 -0
  97. package/docs/rules/typedef.mdx +8 -8
  98. package/docs/rules/unbound-method.mdx +2 -0
  99. package/docs/rules/unified-signatures.mdx +2 -0
  100. package/package.json +7 -7
@@ -62,7 +62,7 @@ For example, with the following configuration:
62
62
 
63
63
  ### `arrayDestructuring`
64
64
 
65
- Whether to enforce type annotations on variables declared using array destructuring.
65
+ {/* insert option description */}
66
66
 
67
67
  Examples of code with `{ "arrayDestructuring": true }`:
68
68
 
@@ -91,7 +91,7 @@ for (const [key, val] of new Map([['key', 1]])) {
91
91
 
92
92
  ### `arrowParameter`
93
93
 
94
- Whether to enforce type annotations for parameters of arrow functions.
94
+ {/* insert option description */}
95
95
 
96
96
  Examples of code with `{ "arrowParameter": true }`:
97
97
 
@@ -126,7 +126,7 @@ const mapper = {
126
126
 
127
127
  ### `memberVariableDeclaration`
128
128
 
129
- Whether to enforce type annotations on member variables of classes.
129
+ {/* insert option description */}
130
130
 
131
131
  Examples of code with `{ "memberVariableDeclaration": true }`:
132
132
 
@@ -155,7 +155,7 @@ class ContainsText {
155
155
 
156
156
  ### `objectDestructuring`
157
157
 
158
- Whether to enforce type annotations on variables declared using object destructuring.
158
+ {/* insert option description */}
159
159
 
160
160
  Examples of code with `{ "objectDestructuring": true }`:
161
161
 
@@ -183,7 +183,7 @@ for (const { key, val } of [{ key: 'key', val: 1 }]) {
183
183
 
184
184
  ### `parameter`
185
185
 
186
- Whether to enforce type annotations for parameters of functions and methods.
186
+ {/* insert option description */}
187
187
 
188
188
  Examples of code with `{ "parameter": true }`:
189
189
 
@@ -250,7 +250,7 @@ class Logger {
250
250
 
251
251
  ### `propertyDeclaration`
252
252
 
253
- Whether to enforce type annotations for properties of interfaces and types.
253
+ {/* insert option description */}
254
254
 
255
255
  Examples of code with `{ "propertyDeclaration": true }`:
256
256
 
@@ -279,7 +279,7 @@ type Members = {
279
279
 
280
280
  ### `variableDeclaration`
281
281
 
282
- Whether to enforce type annotations for variable declarations, excluding array and object destructuring.
282
+ {/* insert option description */}
283
283
 
284
284
  Examples of code with `{ "variableDeclaration": true }`:
285
285
 
@@ -306,7 +306,7 @@ let delayedText: string;
306
306
 
307
307
  ### `variableDeclarationIgnoreFunction`
308
308
 
309
- Whether to ignore variable declarations for non-arrow and arrow functions.
309
+ {/* insert option description */}
310
310
 
311
311
  Examples of code with `{ "variableDeclaration": true, "variableDeclarationIgnoreFunction": true }`:
312
312
 
@@ -87,6 +87,8 @@ const { double } = arith;
87
87
 
88
88
  ### `ignoreStatic`
89
89
 
90
+ {/* insert option description */}
91
+
90
92
  Examples of **correct** code for this rule with `{ ignoreStatic: true }`:
91
93
 
92
94
  ```ts option='{ "ignoreStatic": true }' showPlaygroundButton
@@ -55,6 +55,8 @@ function f(...a: string[]): void;
55
55
 
56
56
  ### `ignoreDifferentlyNamedParameters`
57
57
 
58
+ {/* insert option description */}
59
+
58
60
  Examples of code for this rule with `ignoreDifferentlyNamedParameters`:
59
61
 
60
62
  <Tabs>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/eslint-plugin",
3
- "version": "8.9.1-alpha.1",
3
+ "version": "8.9.1-alpha.10",
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.10.0",
64
- "@typescript-eslint/scope-manager": "8.9.1-alpha.1",
65
- "@typescript-eslint/type-utils": "8.9.1-alpha.1",
66
- "@typescript-eslint/utils": "8.9.1-alpha.1",
67
- "@typescript-eslint/visitor-keys": "8.9.1-alpha.1",
64
+ "@typescript-eslint/scope-manager": "8.9.1-alpha.10",
65
+ "@typescript-eslint/type-utils": "8.9.1-alpha.10",
66
+ "@typescript-eslint/utils": "8.9.1-alpha.10",
67
+ "@typescript-eslint/visitor-keys": "8.9.1-alpha.10",
68
68
  "graphemer": "^1.4.0",
69
69
  "ignore": "^5.3.1",
70
70
  "natural-compare": "^1.4.0",
@@ -75,8 +75,8 @@
75
75
  "@types/marked": "^5.0.2",
76
76
  "@types/mdast": "^4.0.3",
77
77
  "@types/natural-compare": "*",
78
- "@typescript-eslint/rule-schema-to-typescript-types": "8.9.1-alpha.1",
79
- "@typescript-eslint/rule-tester": "8.9.1-alpha.1",
78
+ "@typescript-eslint/rule-schema-to-typescript-types": "8.9.1-alpha.10",
79
+ "@typescript-eslint/rule-tester": "8.9.1-alpha.10",
80
80
  "ajv": "^6.12.6",
81
81
  "cross-env": "^7.0.3",
82
82
  "cross-fetch": "*",