Blocks E2E: Restore the no-hooks rule (#47500)

This commit is contained in:
Bart Kalisz 2024-05-15 13:05:52 +02:00 committed by GitHub
parent 3ef7a01840
commit e765a717d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,10 @@ const config = {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'rulesdir/no-raw-playwright-test-import': 'error',
// Since we're restoring the database for each test, hooks other than
// `beforeEach` don't make sense.
// See https://github.com/woocommerce/woocommerce/pull/46432.
'playwright/no-hooks': [ 'error', { allow: [ 'beforeEach' ] } ],
},
};

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Restore the playwright/no-hooks linter rule introduced in #46432 and accidentally removed in #47228.