removeddit/.eslintrc.json
Christopher Gurnee 7c935ab666 Add eslint-plugin-react-hooks and fix a related bug
To reproduce the bug with the older code, visit
  https://www.unddit.com/r/space/comments/y8ul7n/_/it2cz6o/
and then click the Parent link on the top-most comment. Installing
eslint-plugin-react-hooks hopefully prevents future related bugs.
2022-10-20 23:24:19 +00:00

39 lines
853 B
JSON

{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
],
"rules": {
"react/prop-types": "off",
"no-constant-condition": ["error", { "checkLoops": false }]
},
"settings": {
"react": {
"version": "detect"
},
"componentWrapperFunctions": [
"connect"
],
"linkComponents": [
{"name": "Link", "linkAttribute": "to"},
{"name": "NavLink", "linkAttribute": "to"}
]
}
}