mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 19:28:11 +08:00
chore: Add ESLint no-floating-promise
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user