Tools: Add eslint rule "jest/require-top-level-describe"

This commit is contained in:
Laurent Cozic
2023-03-09 17:50:56 +00:00
parent 19431abc73
commit 3eca4ada5a
10 changed files with 104 additions and 21 deletions
+3
View File
@@ -91,6 +91,8 @@ module.exports = {
// Disable because of this: https://github.com/facebook/react/issues/16265
// "react-hooks/exhaustive-deps": "warn",
'jest/require-top-level-describe': ['error', { 'maxNumberOfTopLevelDescribes': 1 }],
'promise/prefer-await-to-then': 'error',
'no-unneeded-ternary': 'error',
@@ -155,6 +157,7 @@ module.exports = {
// 'react-hooks',
'import',
'promise',
'jest',
],
'overrides': [
{