Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ export default defineConfig([
rules: {
...reactRefresh.configs.recommended.rules,
...reactHooks.configs.flat.recommended.rules,
// Allow route files to export `Route = createFileRoute(...)(...)`
// alongside their component, and allow shared constants in
// component files. The TanStack helpers aren't real React HOCs,
// but listing them here matches our project convention of
// co-locating the component with the route definition.
'react-refresh/only-export-components': [
'error',
{
allowConstantExport: true,
extraHOCs: ['createFileRoute', 'createRootRouteWithContext'],
},
],
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"electron": "41.5.1",
"eslint": "^9.39.4",
"eslint-plugin-react-hooks": "~7.1.1",
"eslint-plugin-react-refresh": "^0.4.19",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.6.0",
"husky": "^9.1.7",
"icon-gen": "^5.0.0",
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions renderer/src/common/components/ui/pagination-constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const DEFAULT_PAGE_SIZE_OPTIONS = [12, 24, 50, 100] as const
3 changes: 1 addition & 2 deletions renderer/src/common/components/ui/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import {
SelectTrigger,
SelectValue,
} from '@/common/components/ui/select'

export const DEFAULT_PAGE_SIZE_OPTIONS = [12, 24, 50, 100] as const
import { DEFAULT_PAGE_SIZE_OPTIONS } from './pagination-constants'

type PaginationProps = {
page: number
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/features/skills/lib/registry-pagination.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DEFAULT_PAGE_SIZE_OPTIONS } from '@/common/components/ui/pagination'
import { DEFAULT_PAGE_SIZE_OPTIONS } from '@/common/components/ui/pagination-constants'

export const REGISTRY_PAGE_SIZE_OPTIONS = DEFAULT_PAGE_SIZE_OPTIONS
export const DEFAULT_REGISTRY_PAGE_SIZE: (typeof REGISTRY_PAGE_SIZE_OPTIONS)[number] = 24
Loading