Skip to content

Commit c3e3c77

Browse files
committed
fix(eslint-config): add support for Playwright ESLint plugin
- Introduced conditional inclusion of the `playwright-eslint-plugin` based on the `enablePlaywright` flag in the ESLint configuration.
1 parent 16d6cc9 commit c3e3c77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/eslint-config/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,10 @@ export const createConfig = async (
561561
packages.push("eslint-plugin-format");
562562
}
563563

564+
if (enablePlaywright) {
565+
packages.push("playwright-eslint-plugin");
566+
}
567+
564568
if (enableAstro) {
565569
packages.push("eslint-plugin-astro", "astro-eslint-parser", "@typescript-eslint/parser");
566570

0 commit comments

Comments
 (0)