Advertisement
Guest User

.eslintrc.json for react

a guest
Feb 15th, 2022
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "parser": "babel-eslint",
  3.   "parserOptions": {
  4.     "ecmaVersion": 2018,
  5.     "sourceType": "module"
  6.   },
  7.   "plugins": [
  8.     "react-hooks"
  9.   ],
  10.   "env": {
  11.     "es6": true,
  12.     "browser": true
  13.   },
  14.   "extends": [
  15.     "eslint:recommended",
  16.     "plugin:react/recommended"
  17.   ],
  18.   "rules": {
  19.     "react-hooks/rules-of-hooks": "error",
  20.     "react-hooks/exhaustive-deps": "warn",
  21.     "react/prop-types": "off"
  22.   },
  23.   "settings": {
  24.     "react": {
  25.       "pragma": "React",
  26.       "version": "detect"
  27.     }
  28.   }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement