Add Playwright ESLint plugin (#30082)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
parent
9074696382
commit
20ef38da0d
3 changed files with 24 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
import eslint from "@eslint/js";
|
||||
import mochaPlugin from "eslint-plugin-mocha";
|
||||
import playwright from "eslint-plugin-playwright";
|
||||
import prettierRecommended from "eslint-plugin-prettier/recommended";
|
||||
import reactJsxRuntime from "eslint-plugin-react/configs/jsx-runtime.js";
|
||||
import reactRecommended from "eslint-plugin-react/configs/recommended.js";
|
||||
|
@ -149,4 +150,8 @@ export default tseslint.config(
|
|||
"mocha/no-setup-in-describe": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
...playwright.configs["flat/recommended"],
|
||||
files: ["js/apps/account-ui/test/**"],
|
||||
},
|
||||
);
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
"eslint-plugin-cypress": "^3.3.0",
|
||||
"eslint-plugin-lodash": "^7.4.0",
|
||||
"eslint-plugin-mocha": "^10.4.3",
|
||||
"eslint-plugin-playwright": "^1.6.2",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"eslint-plugin-react": "^7.34.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.2",
|
||||
|
|
|
@ -32,6 +32,9 @@ importers:
|
|||
eslint-plugin-mocha:
|
||||
specifier: ^10.4.3
|
||||
version: 10.4.3(eslint@8.57.0)
|
||||
eslint-plugin-playwright:
|
||||
specifier: ^1.6.2
|
||||
version: 1.6.2(eslint@8.57.0)
|
||||
eslint-plugin-prettier:
|
||||
specifier: ^5.1.3
|
||||
version: 5.1.3(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.0)
|
||||
|
@ -2476,6 +2479,16 @@ packages:
|
|||
peerDependencies:
|
||||
eslint: '>=7.0.0'
|
||||
|
||||
eslint-plugin-playwright@1.6.2:
|
||||
resolution: {integrity: sha512-mraN4Em3b5jLt01q7qWPyLg0Q5v3KAWfJSlEWwldyUXoa7DSPrBR4k6B6LROLqipsG8ndkwWMdjl1Ffdh15tag==}
|
||||
engines: {node: '>=16.6.0'}
|
||||
peerDependencies:
|
||||
eslint: '>=8.40.0'
|
||||
eslint-plugin-jest: '>=25'
|
||||
peerDependenciesMeta:
|
||||
eslint-plugin-jest:
|
||||
optional: true
|
||||
|
||||
eslint-plugin-prettier@5.1.3:
|
||||
resolution: {integrity: sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==}
|
||||
engines: {node: ^14.18.0 || >=16.0.0}
|
||||
|
@ -7104,6 +7117,11 @@ snapshots:
|
|||
globals: 13.24.0
|
||||
rambda: 7.5.0
|
||||
|
||||
eslint-plugin-playwright@1.6.2(eslint@8.57.0):
|
||||
dependencies:
|
||||
eslint: 8.57.0
|
||||
globals: 13.24.0
|
||||
|
||||
eslint-plugin-prettier@5.1.3(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.0):
|
||||
dependencies:
|
||||
eslint: 8.57.0
|
||||
|
|
Loading…
Reference in a new issue