@ffluk3/eslint-plugin-playwright
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -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 @@ } |
@@ -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 @@ |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
15349
8
241
1
36
0