Skip to content

Commit 1affb2e

Browse files
committed
chore: Update example folder
1 parent 26998b5 commit 1affb2e

File tree

4 files changed

+531
-12
lines changed

4 files changed

+531
-12
lines changed

examples/.eslintrc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
{
22
"plugins": ["playwright"],
3-
"rules": {}
3+
"extends": ["plugin:playwright/recommended"],
4+
"rules": {
5+
"playwright/no-commented-out-tests": "error",
6+
"playwright/no-duplicate-hooks": "error",
7+
"playwright/no-get-by-title": "error",
8+
"playwright/no-nth-methods": "error",
9+
"playwright/no-raw-locators": "error",
10+
"playwright/no-restricted-matchers": "error",
11+
"playwright/prefer-comparison-matcher": "error",
12+
"playwright/prefer-equality-matcher": "error",
13+
"playwright/prefer-hooks-in-order": "error",
14+
"playwright/prefer-hooks-on-top": "error",
15+
"playwright/prefer-lowercase-title": "error",
16+
"playwright/prefer-strict-equal": "error",
17+
"playwright/prefer-to-be": "error",
18+
"playwright/prefer-to-contain": "error",
19+
"playwright/prefer-to-have-count": "error",
20+
"playwright/prefer-to-have-length": "error",
21+
"playwright/require-to-throw-message": "error",
22+
"playwright/require-top-level-describe": "error"
23+
}
424
}

examples/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
"lint": "eslint ."
66
},
77
"dependencies": {
8-
"@playwright/test": "^1.38.1",
8+
"@playwright/test": "^1.42.0",
99
"eslint": "^8.51.0",
1010
"eslint-plugin-playwright": "file:../"
11+
},
12+
"devDependencies": {
13+
"@types/node": "^20.11.17"
1114
}
1215
}

0 commit comments

Comments
 (0)