Compare commits

...

1 Commits
main ... eslint

Author SHA1 Message Date
e5091ebfcb turn on/off react-perf rules
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2025-04-04 17:21:26 -07:00

View File

@ -17,9 +17,13 @@
"extends": [
"plugin:css-modules/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended"
"plugin:react-hooks/recommended",
"plugin:react-perf/recommended"
],
"rules": {
"react-perf/jsx-no-new-object-as-prop": "off", // We don't think this helps anything.
"react-perf/jsx-no-new-function-as-prop": "off", // We don't think this helps anything.
"react-perf/jsx-no-new-array-as-prop": "off", // We don't think this helps anything.
"no-array-constructor": "off", // This is wrong; use the @typescript-eslint one instead.
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-array-delete": "error",