Skip to content

Commit

Permalink
Merge pull request #245 from AndreaPontrandolfo/AndreaPontrandolfo/is…
Browse files Browse the repository at this point in the history
…sue244

fix(config): implemented @eslint-react/eslint-plugin manually
  • Loading branch information
AndreaPontrandolfo authored Aug 29, 2024
2 parents a52a944 + c8f0cde commit 1cec315
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/chilled-readers-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'eslint-config-sheriff': minor
---

fix(config): implemented @eslint-react/eslint-plugin manually
Fixes #244
11 changes: 6 additions & 5 deletions packages/eslint-config-sheriff/src/getReactConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ export const getReactConfig = (
},
{
files: [supportedFileTypes],
...rel1cxReact.configs.off,
},
{
files: [supportedFileTypes],
plugins: {
'@eslint-react': rel1cxReact.configs.all.plugins['@eslint-react'],
'@eslint-react/hooks-extra':
rel1cxReact.configs.all.plugins['@eslint-react/hooks-extra'],
},
rules: {
'@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks': 2,
'@eslint-react/no-leaked-conditional-rendering': 2,
'@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks': 2,
},
},
{
Expand Down

0 comments on commit 1cec315

Please sign in to comment.