Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Sep 6, 2024
1 parent e88c03f commit 4f12bd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ export default [
rules: {
'no-console': 'error',

complexity: ['error', { max: 5 }],
// complexity was set to 7 after update to eslint 9 as they changed the algorithm
// could be resolved via custom rule visual-complexity
// see: https://github.com/eslint/eslint/issues/18432
complexity: ['error', { max: 7 }],
'max-depth': ['error', { max: 2 }],
'max-nested-callbacks': ['error', { max: 2 }],
'max-params': ['error', { max: 3 }],
Expand Down
1 change: 1 addition & 0 deletions src/pwHooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Hook Playwright internal modules.
*/
/* eslint-disable @typescript-eslint/no-require-imports */
import path from 'node:path';

const pwRoot = resolvePackageRoot('playwright');
Expand Down

0 comments on commit 4f12bd7

Please sign in to comment.