mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
- 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
63 lines
1.7 KiB
JSON
63 lines
1.7 KiB
JSON
{
|
|
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
|
"sortImports": {
|
|
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
|
|
"internalPattern": ["@/", "@sofa/"],
|
|
"newlinesBetween": true,
|
|
"order": "asc"
|
|
},
|
|
"sortTailwindcss": {
|
|
"attributes": [
|
|
"classList",
|
|
"headerClassName",
|
|
"contentContainerClassName",
|
|
"columnWrapperClassName",
|
|
"endFillColorClassName",
|
|
"imageClassName",
|
|
"tintColorClassName",
|
|
"ios_backgroundColorClassName",
|
|
"thumbColorClassName",
|
|
"trackColorOnClassName",
|
|
"trackColorOffClassName",
|
|
"selectionColorClassName",
|
|
"cursorColorClassName",
|
|
"underlineColorAndroidClassName",
|
|
"placeholderTextColorClassName",
|
|
"selectionHandleColorClassName",
|
|
"colorsClassName",
|
|
"progressBackgroundColorClassName",
|
|
"titleColorClassName",
|
|
"underlayColorClassName",
|
|
"colorClassName",
|
|
"backdropColorClassName",
|
|
"backgroundColorClassName",
|
|
"statusBarBackgroundColorClassName",
|
|
"drawerBackgroundColorClassName",
|
|
"ListFooterComponentClassName",
|
|
"ListHeaderComponentClassName"
|
|
],
|
|
"functions": ["cn", "clsx", "cva", "useResolveClassNames"]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.json", "**/*.jsonc"],
|
|
"options": {
|
|
"trailingComma": "none"
|
|
}
|
|
}
|
|
],
|
|
"ignorePatterns": [
|
|
"node_modules",
|
|
"dist",
|
|
"build",
|
|
"packages/db/drizzle",
|
|
"packages/i18n/src/po/*.ts",
|
|
"packages/tmdb/src/schema.d.ts",
|
|
"**/routeTree.gen.ts",
|
|
"apps/native/.expo/types/**/*.ts",
|
|
"apps/native/expo-env.d.ts",
|
|
"apps/native/uniwind-types.d.ts",
|
|
"docs"
|
|
]
|
|
}
|