Skip to content

Commit

Permalink
react/display-name in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoz committed Oct 15, 2024
1 parent 653e77f commit 518784f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-cougars-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@awesome-code-style/eslint-config': patch
---

Ignore react/display-name in tests
6 changes: 6 additions & 0 deletions packages/eslint-config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ export const reactConfigs = {
'react/jsx-no-target-blank': 'off',
},
},
{
files: ['**/*.spec.jsx', '**/*.spec.tsx'],
rules: {
'react/display-name': 'off',
},
},
],
reactTypeChecked: [
{
Expand Down

0 comments on commit 518784f

Please sign in to comment.