New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ffluk3/eslint-plugin-playwright

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ffluk3/eslint-plugin-playwright - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

dist/lib/utils/ast.js

5

dist/lib/rules/test-case-naming.js

@@ -8,2 +8,3 @@ "use strict";

var utils_1 = require("@typescript-eslint/utils");
var ast_1 = require("../utils/ast");
var createRule = utils_1.ESLintUtils.RuleCreator(function (name) { return "https://example.com/rule/".concat(name); });

@@ -67,5 +68,3 @@ exports.ruleTestCaseNaming = createRule({

}
var calleeName = node.parent.callee.name;
// If this literal wasn't called with the function type, return
if (calleeName !== 'test') {
if (!(0, ast_1.isTest)(node.parent)) {
return;

@@ -72,0 +71,0 @@ }

2

dist/tests/lib/rules/test-case-naming.test.js

@@ -16,3 +16,3 @@ "use strict";

{
code: (0, common_tags_1.stripIndent)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n import { test } from '@playwright/test';\n\n test.describe(\"hello world\", async () => {\n test(\"@flaky nothing else here\")\n })\n "], ["\n import { test } from '@playwright/test';\n\n test.describe(\"hello world\", async () => {\n test(\"@flaky nothing else here\")\n })\n "]))),
code: (0, common_tags_1.stripIndent)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n import { test } from '@playwright/test';\n\n test.describe(\"hello world\", async () => {\n test(\"@flaky nothing else here\", async () => {})\n })\n "], ["\n import { test } from '@playwright/test';\n\n test.describe(\"hello world\", async () => {\n test(\"@flaky nothing else here\", async () => {})\n })\n "]))),
options: [

@@ -19,0 +19,0 @@ {

{
"name": "@ffluk3/eslint-plugin-playwright",
"description": "Rules for playwright",
"repository": "https://github.com/ffluk3/eslint-plugin-playwright",
"author": "Lucas Shadler",
"license": "MIT",
"main": "dist/index.js",

@@ -17,3 +20,3 @@ "keywords": [

},
"version": "0.2.0",
"version": "0.3.0",
"devDependencies": {

@@ -42,3 +45,3 @@ "@semantic-release/changelog": "^6.0.1",

"peerDependencies": {
"eslint": "^7 || ^8"
"eslint": "^7 || ^8 || ^9"
},

@@ -45,0 +48,0 @@ "scripts": {

# Additional custom rules for Playwright
[![Release](https://github.com/ffluk3/eslint-plugin-playwright/actions/workflows/release.yml/publish.svg)](https://github.com/ffluk3/eslint-plugin-playwright/actions/workflows/release.yml/publish.svg)
[![CI](https://github.com/ffluk3/eslint-plugin-playwright/actions/workflows/ci.yml/badge.svg)](https://github.com/ffluk3/eslint-plugin-playwright/actions/workflows/ci.yml/badge.svg)
[![CD](https://github.com/ffluk3/eslint-plugin-playwright/actions/workflows/publish.yml/badge.svg)](https://github.com/ffluk3/eslint-plugin-playwright/actions/workflows/publish.yml/badge.svg)
[![NPM](https://img.shields.io/npm/v/@ffluk3/eslint-plugin-playwright)](https://www.npmjs.com/package/@ffluk3/eslint-plugin-playwright)

@@ -5,0 +6,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc