From 718c5e2a3fd06752a77841476a3d5f2001572ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20B=C3=B6hm?= Date: Sun, 4 Sep 2022 19:50:33 +0200 Subject: [PATCH] feat(eslint): deactivate `.../explicit-function-return-type` eslint rule (#31) Deactivate the `@typescript-eslint/explicit-function-return-type` rule for JSX files. --- .changeset/healthy-donuts-live.md | 5 +++++ packages/eslint-config/react.js | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/healthy-donuts-live.md diff --git a/.changeset/healthy-donuts-live.md b/.changeset/healthy-donuts-live.md new file mode 100644 index 0000000..6dae81d --- /dev/null +++ b/.changeset/healthy-donuts-live.md @@ -0,0 +1,5 @@ +--- +'@mheob/eslint-config': minor +--- + +Deactivate `@typescript-eslint/explicit-function-return-type` rule for jsx files. diff --git a/packages/eslint-config/react.js b/packages/eslint-config/react.js index 08b7688..844c449 100644 --- a/packages/eslint-config/react.js +++ b/packages/eslint-config/react.js @@ -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',