chore(lint): add perf category to oxlint and fix resulting warnings

- Enable `perf: warn` in `.oxlintrc.json` and add `builtin` env; disable `no-await-in-loop` and `react/no-array-index-key` globally
- Reorder plugins so `oxc` is first
- Add `.oxfmtrc.json` override to suppress trailing commas in JSON/JSONC files
- Replace spread-into-new-object patterns (`{ ...x, key: val }`) with `Object.assign(x, { key: val })` in discover, explore, integrations, search, credits, and image-cache to satisfy perf rules
- Memoize `ChartContext` and `ToggleGroupContext` provider values to avoid unnecessary re-renders
This commit is contained in:
2026-03-18 15:48:47 -04:00
parent 2b0c683b7b
commit 3a0374c825
10 changed files with 43 additions and 33 deletions
+8
View File
@@ -38,6 +38,14 @@
],
"functions": ["cn", "clsx", "cva", "useResolveClassNames"]
},
"overrides": [
{
"files": ["**/*.json", "**/*.jsonc"],
"options": {
"trailingComma": "none"
}
}
],
"ignorePatterns": [
"node_modules",
"dist",