Skip to content

Commit

Permalink
(chore): Disable eslint rules for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
NethmiRodrigo committed Aug 5, 2024
1 parent 5940e62 commit c062404
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
]
}

0 comments on commit c062404

Please sign in to comment.