@wistia/eslint-config 0.17.10 → 0.17.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.
package/package.json
CHANGED
|
@@ -78,6 +78,11 @@ module.exports = {
|
|
|
78
78
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/docs/linting/TROUBLESHOOTING.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
|
|
79
79
|
'no-undef': 'off',
|
|
80
80
|
|
|
81
|
+
// allow void to be used as a statement
|
|
82
|
+
// i.e. when it’s not used in an expression position, like in a variable assignment or a function return
|
|
83
|
+
// https://eslint.org/docs/rules/no-void
|
|
84
|
+
'no-void': ['error', { allowAsStatement: true }],
|
|
85
|
+
|
|
81
86
|
// Require that member overloads be consecutive
|
|
82
87
|
// https://typescript-eslint.io/rules/adjacent-overload-signatures
|
|
83
88
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
@@ -206,7 +211,7 @@ module.exports = {
|
|
|
206
211
|
|
|
207
212
|
// Require Promise-like statements to be handled appropriately
|
|
208
213
|
// https://typescript-eslint.io/rules/no-floating-promises
|
|
209
|
-
'@typescript-eslint/no-floating-promises': 'error',
|
|
214
|
+
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
|
|
210
215
|
|
|
211
216
|
// Disallow iterating over an array with a for-in loop
|
|
212
217
|
// https://typescript-eslint.io/rules/no-for-in-array
|