Skip to content

Commit a40168e

Browse files
ci(linting): configure playwright eslint
1 parent 3d70340 commit a40168e

File tree

3 files changed

+57
-2
lines changed

3 files changed

+57
-2
lines changed

eslint.config.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import eslint from '@eslint/js'
2-
import vitest from 'eslint-plugin-vitest'
32
import tseslint from 'typescript-eslint'
3+
import vitest from 'eslint-plugin-vitest'
4+
import playwright from 'eslint-plugin-playwright'
45

56
export default tseslint.config(
67
{
78
ignores: [
89
'lib',
910
'examples',
1011
'coverage',
11-
'**/.tmp',
12+
'e2e/test_repos/templates',
1213
'**/test-results',
1314
'**/playwright-report'
1415
]
@@ -57,5 +58,9 @@ export default tseslint.config(
5758
{
5859
files: ['src/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
5960
...vitest.configs.recommended
61+
},
62+
{
63+
...playwright.configs['flat/recommended'],
64+
files: ['e2e/tests/**']
6065
}
6166
)

package-lock.json

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"commitizen": "^4.3.1",
6666
"cz-conventional-changelog": "3.3.0",
6767
"eslint": "^9.13.0",
68+
"eslint-plugin-playwright": "^2.0.0",
6869
"eslint-plugin-vitest": "^0.5.4",
6970
"husky": "^9.1.6",
7071
"lint-staged": "^15.2.10",

0 commit comments

Comments
 (0)