Skip to content

Commit

Permalink
chore: Update example folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Feb 28, 2024
1 parent 26998b5 commit 1affb2e
Show file tree
Hide file tree
Showing 4 changed files with 531 additions and 12 deletions.
22 changes: 21 additions & 1 deletion examples/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
{
"plugins": ["playwright"],
"rules": {}
"extends": ["plugin:playwright/recommended"],
"rules": {
"playwright/no-commented-out-tests": "error",
"playwright/no-duplicate-hooks": "error",
"playwright/no-get-by-title": "error",
"playwright/no-nth-methods": "error",
"playwright/no-raw-locators": "error",
"playwright/no-restricted-matchers": "error",
"playwright/prefer-comparison-matcher": "error",
"playwright/prefer-equality-matcher": "error",
"playwright/prefer-hooks-in-order": "error",
"playwright/prefer-hooks-on-top": "error",
"playwright/prefer-lowercase-title": "error",
"playwright/prefer-strict-equal": "error",
"playwright/prefer-to-be": "error",
"playwright/prefer-to-contain": "error",
"playwright/prefer-to-have-count": "error",
"playwright/prefer-to-have-length": "error",
"playwright/require-to-throw-message": "error",
"playwright/require-top-level-describe": "error"
}
}
5 changes: 4 additions & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
"lint": "eslint ."
},
"dependencies": {
"@playwright/test": "^1.38.1",
"@playwright/test": "^1.42.0",
"eslint": "^8.51.0",
"eslint-plugin-playwright": "file:../"
},
"devDependencies": {
"@types/node": "^20.11.17"
}
}
Loading

0 comments on commit 1affb2e

Please sign in to comment.