Description
I would like to have an ESLint rule (or a configuration option in Playwright) that ensures there is always a blank line before calls to test() or test.step().
Currently, ESLint’s built-in rule padding-line-between-statements does not support targeting specific function names, it only works with statement categories like "expression", "return", or "function". This makes it impossible to enforce a blank line only before test() or test.step() without affecting all function calls or resorting to writing a custom ESLint plugin.
A built-in or officially supported rule/plugin would allow us to keep our test files cleaner and more readable without additional overhead. If Playwright could provide such a rule as part of its configuration or as an optional ESLint plugin, it would be greatly appreciated by teams who rely heavily on test() and test.step() in their code.
Thank you for considering this feature request!