File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { defineConfig } from '@eslint/config-helpers' ;
2- import docsPlugin from 'eslint-plugin-docs' ;
1+ import typescriptEslint from '@typescript-eslint/eslint-plugin' ;
2+ import typescriptParser from '@typescript-eslint/parser' ;
3+ import playwright from 'eslint-plugin-playwright' ;
34
4- const eslintConfig = defineConfig ( [
5+ export default [
56 {
6- files : [ '**/*.ts' , '**/*.mjs' ] ,
7+ files : [ '**/*.ts' ] ,
8+ languageOptions : {
9+ parser : typescriptParser ,
10+ } ,
711 plugins : {
8- docs : docsPlugin ,
12+ '@typescript-eslint' : typescriptEslint ,
13+ playwright,
14+ } ,
15+ rules : {
16+ ...playwright . configs [ 'flat/recommended' ] . rules ,
17+ 'playwright/no-force-option' : 'off' ,
18+ 'playwright/no-wait-for-timeout' : 'off' ,
19+ 'playwright/no-conditional-in-test' : 'off' ,
20+ 'playwright/no-skipped-test' : 'off' ,
21+ 'playwright/expect-expect' : 'error' ,
22+ 'playwright/no-conditional-expect' : 'error' ,
923 } ,
10- extends : [ 'docs/playwright' ] ,
1124 } ,
12- ] ) ;
13-
14- export default eslintConfig ;
25+ ] ;
Original file line number Diff line number Diff line change 1616 },
1717 "devDependencies" : {
1818 "@playwright/test" : " 1.58.2" ,
19- "@types/node" : " *" ,
20- "eslint-plugin-docs" : " *" ,
21- "typescript" : " *"
19+ "@types/node" : " 24.10.1"
2220 },
2321 "dependencies" : {
2422 "dotenv" : " 17.3.1"
You can’t perform that action at this time.
0 commit comments