eslint-plugin-playwright
Advanced tools
Comparing version 0.14.3 to 0.15.0
"use strict"; | ||
const expect_expect_1 = require("./rules/expect-expect"); | ||
const max_nested_describe_1 = require("./rules/max-nested-describe"); | ||
@@ -9,3 +10,5 @@ const missing_playwright_await_1 = require("./rules/missing-playwright-await"); | ||
const no_force_option_1 = require("./rules/no-force-option"); | ||
const no_nested_step_1 = require("./rules/no-nested-step"); | ||
const no_networkidle_1 = require("./rules/no-networkidle"); | ||
const no_nth_methods_1 = require("./rules/no-nth-methods"); | ||
const no_page_pause_1 = require("./rules/no-page-pause"); | ||
@@ -20,2 +23,3 @@ const no_restricted_matchers_1 = require("./rules/no-restricted-matchers"); | ||
const prefer_to_be_1 = require("./rules/prefer-to-be"); | ||
const prefer_to_contain_1 = require("./rules/prefer-to-contain"); | ||
const prefer_to_have_length_1 = require("./rules/prefer-to-have-length"); | ||
@@ -33,2 +37,3 @@ const prefer_web_first_assertions_1 = require("./rules/prefer-web-first-assertions"); | ||
'no-empty-pattern': 'off', | ||
'playwright/expect-expect': 'warn', | ||
'playwright/max-nested-describe': 'warn', | ||
@@ -41,2 +46,3 @@ 'playwright/missing-playwright-await': 'error', | ||
'playwright/no-force-option': 'warn', | ||
'playwright/no-nested-step': 'warn', | ||
'playwright/no-networkidle': 'error', | ||
@@ -90,2 +96,3 @@ 'playwright/no-page-pause': 'warn', | ||
rules: { | ||
'expect-expect': expect_expect_1.default, | ||
'max-nested-describe': max_nested_describe_1.default, | ||
@@ -98,3 +105,5 @@ 'missing-playwright-await': missing_playwright_await_1.default, | ||
'no-force-option': no_force_option_1.default, | ||
'no-nested-step': no_nested_step_1.default, | ||
'no-networkidle': no_networkidle_1.default, | ||
'no-nth-methods': no_nth_methods_1.default, | ||
'no-page-pause': no_page_pause_1.default, | ||
@@ -109,2 +118,3 @@ 'no-restricted-matchers': no_restricted_matchers_1.default, | ||
'prefer-to-be': prefer_to_be_1.default, | ||
'prefer-to-contain': prefer_to_contain_1.default, | ||
'prefer-to-have-length': prefer_to_have_length_1.default, | ||
@@ -111,0 +121,0 @@ 'prefer-web-first-assertions': prefer_web_first_assertions_1.default, |
{ | ||
"name": "eslint-plugin-playwright", | ||
"description": "ESLint plugin for Playwright testing.", | ||
"version": "0.14.3", | ||
"version": "0.15.0", | ||
"packageManager": "pnpm@8.4.0", | ||
@@ -17,2 +17,10 @@ "main": "lib/index.js", | ||
], | ||
"scripts": { | ||
"build": "tsc --project tsconfig.build.json", | ||
"lint": "eslint .", | ||
"format": "prettier --write .", | ||
"format:check": "prettier --check .", | ||
"test": "jest", | ||
"ts": "tsc" | ||
}, | ||
"devDependencies": { | ||
@@ -30,2 +38,3 @@ "@mskelton/eslint-config": "^8.0.0", | ||
"prettier": "^2.8.8", | ||
"semantic-release": "^21.0.5", | ||
"ts-jest": "^29.1.0", | ||
@@ -42,11 +51,3 @@ "typescript": "^5.1.3" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "tsc --project tsconfig.build.json", | ||
"lint": "eslint .", | ||
"format": "prettier --write .", | ||
"format:check": "prettier --check .", | ||
"test": "jest", | ||
"ts": "tsc" | ||
} | ||
} | ||
} |
@@ -5,2 +5,3 @@ # ESLint Plugin Playwright | ||
[![npm](https://img.shields.io/npm/v/eslint-plugin-playwright)](https://www.npmjs.com/package/eslint-plugin-playwright) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) | ||
@@ -60,2 +61,3 @@ ESLint plugin for [Playwright](https://github.com/microsoft/playwright). | ||
| :-: | :-: | :-: | --------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | | ||
| ✔ | | | [expect-expect](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/expect-expect.md) | Enforce assertion to be made in a test body | | ||
| ✔ | | | [max-nested-describe](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/max-nested-describe.md) | Enforces a maximum depth to nested describe calls | | ||
@@ -68,3 +70,5 @@ | ✔ | 🔧 | | [missing-playwright-await](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/missing-playwright-await.md) | Enforce Playwright APIs to be awaited | | ||
| ✔ | | | [no-force-option](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-force-option.md) | Disallow usage of the `{ force: true }` option | | ||
| ✔ | | | [no-nested-step](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-nested-step.md) | Disallow nested `test.step()` methods | | ||
| ✔ | | | [no-networkidle](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-networkidle.md) | Disallow usage of the `networkidle` option | | ||
| | | | [no-nth-methods](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-nth-methods.md) | Disallow usage of `first()`, `last()`, and `nth()` methods | | ||
| ✔ | | | [no-page-pause](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-page-pause.md) | Disallow using `page.pause` | | ||
@@ -79,2 +83,3 @@ | ✔ | 🔧 | | [no-useless-await](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-await.md) | Disallow unnecessary `await`s for Playwright methods | | ||
| | 🔧 | | [prefer-to-be](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-be.md) | Suggest using `toBe()` | | ||
| | 🔧 | | [prefer-to-contain](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-contain.md) | Suggest using `toContain()` | | ||
| | 🔧 | | [prefer-to-have-length](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-have-length.md) | Suggest using `toHaveLength()` | | ||
@@ -81,0 +86,0 @@ | ✔ | 🔧 | | [prefer-web-first-assertions](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-web-first-assertions.md) | Suggest using web first assertions | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85160
35
1964
86
14