{ "plugins": ["react", "react-hooks"], "extends": [ "airbnb", "airbnb/hooks", "eslint:recommended", "plugin:react/recommended", "plugin:promise/recommended", "plugin:import/recommended", "prettier", "plugin:prettier/recommended", "plugin:react-hooks/recommended" ], "env": { "browser": true, "es2020": true, "node": true }, "parserOptions": { "requireConfigFile": false, "ecmaFeatures": { "jsx": true }, "ecmaVersion": 12, "sourceType": "module" }, "settings": { "react": { "version": "detect" }, "import/core-modules": ["electron"] }, "rules": { "react/destructuring-assignment": "warn", "react/react-in-jsx-scope": 0, "react/display-name": 0, "react/prop-types": 0, "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": "warn", "react/self-closing-comp": "warn", "promise/always-return": "warn", "promise/catch-or-return": "warn", "no-param-reassign": "off", "no-use-before-define": "warn", "no-underscore-dangle": "off", "no-console": "warn", "no-alert": "off", "no-multi-str": "off", "no-unused-vars": "warn", "no-control-regex": "off", "no-nested-ternary": "error", "no-restricted-syntax": ["warn"], "prettier/prettier": [ "error", { "endOfLine": "auto" } ], "react/function-component-definition": [ 2, { "unnamedComponents": "arrow-function" } ] } }