Skip to content

Commit

Permalink
Updated eslint for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeckenham committed Dec 10, 2024
1 parent e81a2ef commit ba78dd6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 6 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ export default [

// Test files specific config
{
files: ['**/*.test.{js,jsx,ts,tsx}', '**/*.spec.{js,jsx,ts,tsx}'],
files: ['**/*.test.{js,jsx,ts,tsx}', '**/*.spec.{js,jsx,ts,tsx}', 'playwright.config.ts'],
languageOptions: {
parserOptions: {
project: './tsconfig.test.json',
},
},
rules: {
'no-restricted-globals': 'off',
'@typescript-eslint/no-explicit-any': 'off',
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"consts/*": ["./src/constant/*"],
"assets": ["./src/ui/assets"],
"changeLogs": ["./changeLogs"],
"react": ["./node_modules/@types/react"],
"tests": ["./tests/*"]
"react": ["./node_modules/@types/react"]
},
"lib": ["ES2021.String", "DOM", "DOM.Iterable"],
"types": ["chrome", "node", "react", "react-dom", "jest"],
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"include": ["tests/**/*", "playwright.config.ts"],
"compilerOptions": {
"types": ["@playwright/test"]
}
}

0 comments on commit ba78dd6

Please sign in to comment.