Skip to content

Commit

Permalink
feat(playwright): add a few more rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Jiang committed Feb 18, 2024
1 parent 37d9204 commit 6edbb53
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-playwright": "^1.1.0",
"eslint-plugin-playwright": "^1.2.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/configs/playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ const playwrightRules: FlatConfigItem['rules'] = {
'playwright/no-wait-for-selector': 'error',
'playwright/no-get-by-title': 'warn',
'playwright/no-unsafe-references': 'error',
'playwright/no-conditional-expect': 'error',
'playwright/no-duplicate-hooks': 'error',
'playwright/no-standalone-expect': 'error',
'playwright/prefer-hooks-in-order': 'error',
'playwright/prefer-hooks-on-top': 'error',
}


Expand Down

0 comments on commit 6edbb53

Please sign in to comment.