chore: Add ESLint no-floating-promise

This commit is contained in:
Timmy Huang
2024-09-12 13:36:26 -07:00
parent fd8b47b78e
commit 151c28d119
24 changed files with 822 additions and 716 deletions
+2 -1
View File
@@ -82,13 +82,14 @@ module.exports = {
},
// Can't extend in overrides: https://github.com/eslint/eslint/issues/8813
// "extends": ["plugin:jest/recommended"]
plugins: ["jest"],
plugins: ["jest", "no-floating-promise"],
rules: {
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
"no-floating-promise/no-floating-promise": 2,
},
},
],