mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
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.
39 lines
853 B
JSON
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"}
|
|
]
|
|
}
|
|
}
|