Skip to content

Commit

Permalink
fix(config-eslint): broaden file matching patterns
Browse files Browse the repository at this point in the history
Updated file patterns for eslint configurations to include all files in e2e directories and optional spec and e2e files. This ensures more comprehensive linting coverage for test files.
  • Loading branch information
thevuong committed Nov 22, 2024
1 parent 30181f5 commit 43d34dd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .changeset/gentle-chairs-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
'@codefast/eslint-config': patch
'@codefast/config-tailwind': patch
'@codefast/config-typescript': patch
'@codefast/hooks': patch
'@codefast-ui/checkbox-group': patch
'@codefast-ui/day-picker': patch
'@codefast-ui/input': patch
'@codefast-ui/number-input': patch
'@codefast/third-parties': patch
'@codefast/ui': patch
---

fix(config-eslint): broaden file matching patterns
2 changes: 1 addition & 1 deletion packages/config-eslint/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
},
{
extends: [require.resolve('@vercel/style-guide/eslint/playwright-test')],
files: ['**/e2e/**/?(*.)+(spec|e2e).[jt]s?(x)'],
files: ['**/e2e/**/*.[jt]s?(x)', '**/?(*.)+(spec|e2e).[jt]s?(x)'],
},
],
parserOptions: {
Expand Down
2 changes: 1 addition & 1 deletion packages/config-eslint/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
},
{
extends: [require.resolve('@vercel/style-guide/eslint/playwright-test')],
files: ['**/e2e/**/?(*.)+(spec|e2e).[jt]s?(x)'],
files: ['**/e2e/**/*.[jt]s?(x)', '**/?(*.)+(spec|e2e).[jt]s?(x)'],
},
],
parserOptions: {
Expand Down

0 comments on commit 43d34dd

Please sign in to comment.