Skip to content

Commit

Permalink
Added eslint plugin for playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
pkirilin committed Jan 2, 2024
1 parent b19c5aa commit 8091ad2
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"overrides": [
{
"files": ["*.ts"],
"extends": ["plugin:import/typescript", "standard-with-typescript", "prettier"],
"extends": ["standard-with-typescript", "plugin:playwright/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
Expand Down
29 changes: 29 additions & 0 deletions tests/.pnp.cjs

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

1 change: 1 addition & 0 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"eslint-config-standard-with-typescript": "^43.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.1",
"eslint-plugin-playwright": "^0.21.0",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-promise": "^6.1.1",
"prettier": "^3.1.1",
Expand Down
18 changes: 17 additions & 1 deletion tests/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,21 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-playwright@npm:^0.21.0":
version: 0.21.0
resolution: "eslint-plugin-playwright@npm:0.21.0"
dependencies:
globals: "npm:^13.23.0"
peerDependencies:
eslint: ">=7"
eslint-plugin-jest: ">=25"
peerDependenciesMeta:
eslint-plugin-jest:
optional: true
checksum: e9c68c07aa8df9602f57f18996789aeabe12d978fdb592f79c651bde967e5af4e14e63c0ff61c1aae44be398ead838d4e6ccf5e0d904d8a06013206068978a73
languageName: node
linkType: hard

"eslint-plugin-prettier@npm:^5.1.2":
version: 5.1.2
resolution: "eslint-plugin-prettier@npm:5.1.2"
Expand Down Expand Up @@ -1266,6 +1281,7 @@ __metadata:
eslint-config-standard-with-typescript: "npm:^43.0.0"
eslint-plugin-import: "npm:^2.29.1"
eslint-plugin-n: "npm:^16.6.1"
eslint-plugin-playwright: "npm:^0.21.0"
eslint-plugin-prettier: "npm:^5.1.2"
eslint-plugin-promise: "npm:^6.1.1"
prettier: "npm:^3.1.1"
Expand Down Expand Up @@ -1440,7 +1456,7 @@ __metadata:
languageName: node
linkType: hard

"globals@npm:^13.19.0, globals@npm:^13.24.0":
"globals@npm:^13.19.0, globals@npm:^13.23.0, globals@npm:^13.24.0":
version: 13.24.0
resolution: "globals@npm:13.24.0"
dependencies:
Expand Down

0 comments on commit 8091ad2

Please sign in to comment.