From c062404376b39f31f86d060668ce558499651dd8 Mon Sep 17 00:00:00 2001 From: Nethmi Rodrigo Date: Fri, 26 Jul 2024 12:16:18 +0530 Subject: [PATCH] (chore): Disable eslint rules for e2e --- .eslintrc | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index 82f44e4ea..65f05cac3 100644 --- a/.eslintrc +++ b/.eslintrc @@ -32,7 +32,12 @@ } ], "prefer-const": "off", - "no-console": ["error", { "allow": ["warn", "error"] }], + "no-console": [ + "error", + { + "allow": ["warn", "error"] + } + ], "no-unsafe-optional-chaining": "off", "no-explicit-any": "off", "no-extra-boolean-cast": "off", @@ -67,9 +72,32 @@ }, "overrides": [ { - // This rule prevents commiting because of we have used page.getBy... - "files": ["e2e/**"], - "rules" : {"testing-library/prefer-screen-queries": "off"} + "files": ["**/e2e/**"], + "rules": { + "testing-library/await-async-events": "off", + "testing-library/await-async-query": "off", + "testing-library/await-async-utils": "off", + "testing-library/no-await-sync-events": "off", + "testing-library/no-await-sync-queries": "off", + "testing-library/no-container": "off", + "testing-library/no-debugging-utils": "off", + "testing-library/no-dom-import": "off", + "testing-library/no-global-regexp-flag-in-query": "off", + "testing-library/no-manual-cleanup": "off", + "testing-library/no-node-access": "off", + "testing-library/no-promise-in-fire-event": "off", + "testing-library/no-render-in-lifecycle": "off", + "testing-library/no-unnecessary-act": "off", + "testing-library/no-wait-for-multiple-assertions": "off", + "testing-library/no-wait-for-side-effects": "off", + "testing-library/no-wait-for-snapshot": "off", + "testing-library/prefer-find-by": "off", + "testing-library/prefer-implicit-assert": "off", + "testing-library/prefer-presence-queries": "off", + "testing-library/prefer-query-by-disappearance": "off", + "testing-library/prefer-screen-queries": "off", + "testing-library/render-result-naming-convention": "off" + } } ] }