Skip to content

Commit

Permalink
Remove some rules from test/ files
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Nov 12, 2024
1 parent de496a9 commit 02882a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,17 @@ export default [
'yield-star-spacing': 'off'
}
},
{
files: ['**/test/*'],
rules: {
'n/no-unpublished-require': 'off',
'n/no-unsupported-features/node-builtins': 'off'
}
},
{
files: ['**/*.test.{js,jsx}', '**/*.test.{ts,tsx}'],
rules: {
'n/global-require': 'off',
'n/no-unsupported-features/node-builtins': 'off',
'no-unused-expressions': 'off'
}
}
Expand Down
2 changes: 1 addition & 1 deletion ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default [
}
},
{
files: ['*.{test.ts,test.tsx,stories.tsx}', 'types.ts', '*/test/*'],
files: ['*.{test.ts,test.tsx,stories.tsx}', 'types.ts', '**/test/*'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-expressions': 'off'
Expand Down

0 comments on commit 02882a0

Please sign in to comment.