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 22, 2024
1 parent f9bb4e0 commit 13d1286
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 63 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-playwright": "^1.2.0",
"eslint-plugin-playwright": "^1.3.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"eslint-plugin-vue": "^9.21.1",
"eslint-plugin-vuejs-accessibility": "^2.2.1",
"globals": "^14.0.0",
"local-pkg": "^0.5.0",
"typescript-eslint": "^7.0.1",
"typescript-eslint": "^7.0.2",
"vue-eslint-parser": "^9.4.2"
},
"devDependencies": {
Expand All @@ -67,7 +67,7 @@
"changelogithub": "^0.13.3",
"eslint": "^8.56.0",
"eslint-flat-config-viewer": "^0.1.11",
"sass": "^1.71.0",
"sass": "^1.71.1",
"tsup": "^8.0.2",
"typescript": "^5.3.3"
}
Expand Down
120 changes: 60 additions & 60 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions src/configs/playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ const playwrightRules: FlatConfigItem['rules'] = {
'playwright/no-standalone-expect': 'error',
'playwright/prefer-hooks-in-order': 'error',
'playwright/prefer-hooks-on-top': 'error',
'playwright/prefer-comparison-matcher': 'error',
'playwright/prefer-equality-matcher': 'error',
}


Expand Down

0 comments on commit 13d1286

Please sign in to comment.