about summary refs log tree commit diff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-01-29 21:08:37 -0500
committerGitHub <noreply@github.com>2023-01-30 03:08:37 +0100
commitcbf5ea39d0cabc534a2e75ac2ceff9ad77564962 (patch)
tree5b1277bf89647f4b4e13c6df77e08c86a03784ea /.eslintrc.js
parent131e6403ccd59693e8498d175acba4fdd28268b9 (diff)
Enable ESLint react/recommended ruleset (#22460)
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index e728a7f14..e0a92a0f4 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -3,6 +3,7 @@ module.exports = {
 
   extends: [
     'eslint:recommended',
+    'plugin:react/recommended',
   ],
 
   env: {
@@ -112,19 +113,16 @@ module.exports = {
     'react/jsx-boolean-value': 'error',
     'react/jsx-closing-bracket-location': ['error', 'line-aligned'],
     'react/jsx-curly-spacing': 'error',
+    'react/display-name': 'off',
     'react/jsx-equals-spacing': 'error',
     'react/jsx-first-prop-new-line': ['error', 'multiline-multiprop'],
     'react/jsx-indent': ['error', 2],
     'react/jsx-no-bind': 'error',
-    'react/jsx-no-duplicate-props': 'error',
-    'react/jsx-no-undef': 'error',
+    'react/jsx-no-target-blank': 'off',
     'react/jsx-tag-spacing': 'error',
-    'react/jsx-uses-react': 'error',
-    'react/jsx-uses-vars': 'error',
     'react/jsx-wrap-multilines': 'error',
-    'react/no-multi-comp': 'off',
-    'react/no-string-refs': 'error',
-    'react/prop-types': 'error',
+    'react/no-deprecated': 'off',
+    'react/no-unknown-property': 'off',
     'react/self-closing-comp': 'error',
 
     'jsx-a11y/accessible-emoji': 'warn',