Skip to content

Commit 597ed45

Browse files
authored
feat(eslint-plugin-experience-next): improve pw lint rules (#1631)
1 parent 4fa7772 commit 597ed45

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

projects/eslint-plugin-experience-next/configs/recommended.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,15 +810,36 @@ export default defineConfig([
810810
'@taiga-ui/experience-next/no-playwright-empty-fill': 'error',
811811
'compat/compat': 'off',
812812
'jest/prefer-importing-jest-globals': 'off',
813+
'playwright/consistent-spacing-between-blocks': 'error',
813814
'playwright/expect-expect': [
814815
'error',
815816
{assertFunctionNames: ['expect', 'expect.soft']},
816817
],
818+
'playwright/max-nested-describe': 'error',
819+
'playwright/missing-playwright-await': 'error',
820+
'playwright/no-conditional-expect': 'error',
821+
'playwright/no-conditional-in-test': 'error',
822+
'playwright/no-duplicate-hooks': 'error',
823+
'playwright/no-duplicate-slow': 'error',
824+
'playwright/no-element-handle': 'error',
825+
'playwright/no-eval': 'error',
817826
'playwright/no-force-option': 'error',
827+
'playwright/no-nested-step': 'error',
818828
'playwright/no-networkidle': 'off',
829+
'playwright/no-page-pause': 'error',
819830
'playwright/no-skipped-test': 'off',
831+
'playwright/no-standalone-expect': 'error',
832+
'playwright/no-unsafe-references': 'error',
833+
'playwright/no-unused-locators': 'error',
834+
'playwright/no-useless-await': 'error',
835+
'playwright/no-useless-not': 'error',
820836
'playwright/no-wait-for-selector': 'off',
821837
'playwright/no-wait-for-timeout': 'off',
838+
'playwright/prefer-hooks-in-order': 'error',
839+
'playwright/prefer-hooks-on-top': 'error',
840+
'playwright/prefer-locator': 'error',
841+
'playwright/prefer-to-have-count': 'error',
842+
'playwright/prefer-to-have-length': 'error',
822843
},
823844
},
824845
{

0 commit comments

Comments
 (0)