From 9b744fb1e293e72c66346e12e22da3f8de52f486 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Sat, 3 Feb 2024 23:20:09 +0100 Subject: [PATCH] Add react/jsx-filename-extension rule to .eslintrc.js --- .eslintrc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 8d6596b2..d634c798 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -53,7 +53,8 @@ module.exports = { "no-use-before-define": "off", "no-useless-constructor": "off", "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": "error" + "@typescript-eslint/no-unused-vars": "error", + 'react/jsx-filename-extension': [2, { 'extensions': ['.js', '.jsx', '.ts', '.tsx'] }], }, parserOptions: { ecmaVersion: 2020,