Disable react/function-component-definition rule in ESLint configuration

This commit is contained in:
MathieuG-P
2024-02-03 23:32:58 +01:00
parent 90bb8f2c19
commit 8394581544
+1
View File
@@ -56,6 +56,7 @@ module.exports = {
"@typescript-eslint/no-unused-vars": "error",
'react/jsx-filename-extension': [2, { 'extensions': ['.js', '.jsx', '.ts', '.tsx'] }],
"no-shadow": "off",
"react/function-component-definition": "off",
},
parserOptions: {
ecmaVersion: 2020,