UNPKG

eslint-config-standard-react

Version:

JavaScript Standard Style React/JSX support - ESLint Shareable Config

36 lines (32 loc) 689 B
{ "parserOptions": { "ecmaVersion": 2021, "ecmaFeatures": { "jsx": true }, "sourceType": "module" }, "settings": { "react": { "version": "detect" } }, "plugins": [ "react", "react-hooks" ], "rules": { "react/jsx-no-bind": ["error", { "allowArrowFunctions": true, "allowBind": false, "ignoreRefs": true }], "react/no-did-update-set-state": "error", "react/no-unknown-property": "error", "react/no-unused-prop-types": "error", "react/prop-types": "error", "react/react-in-jsx-scope": "error", "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": "warn" } }