Closed nickhall closed 1 month ago
You might need to declare aliases https://github.com/playwright-community/eslint-plugin-playwright/blob/main/README.md#aliased-playwright-globals
{
"settings": {
"playwright": {
"globalAliases": {
"test": ["myTest"],
"expect": ["myExpect"]
}
}
}
}
Thank you, I think that should handle this use case.
When writing custom matchers using the code provided by the docs, the calls to
baseExtend
are flagged by theno-standalone-expect
rule.I would expect that this scenario wouldn't trigger the rule.