Skip to content

Commit

Permalink
feat(eslint): deactivate .../explicit-function-return-type eslint r…
Browse files Browse the repository at this point in the history
…ule (#31)

Deactivate the `@typescript-eslint/explicit-function-return-type` rule for JSX files.
  • Loading branch information
mheob committed Sep 4, 2022
1 parent 8a868bf commit 718c5e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-donuts-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mheob/eslint-config': minor
---

Deactivate `@typescript-eslint/explicit-function-return-type` rule for jsx files.
1 change: 1 addition & 0 deletions packages/eslint-config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
files: ['*.jsx', '*.tsx'],
settings: { react: { version: 'detect' } },
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'react/jsx-curly-brace-presence': ['warn', { props: 'never', children: 'never' }],
'react/jsx-no-useless-fragment': 'warn',
'react/react-in-jsx-scope': 'off',
Expand Down

0 comments on commit 718c5e2

Please sign in to comment.