Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.
ci: make lint pass by allowing shadcn variant and context hook exports
spacesdrivec086df978742
diff --git a/docs/workflows/FEATURE_DEVELOPMENT.md b/docs/workflows/FEATURE_DEVELOPMENT.mdindex 8154513..b731c53 100644--- a/docs/workflows/FEATURE_DEVELOPMENT.md+++ b/docs/workflows/FEATURE_DEVELOPMENT.md@@ -112,7 +112,7 @@ npm run dev # Worker (8787) and Vite (5173) must both start without errors```bashnpm run lint # one ESLint run over backend, frontend, tests and scripts```-A change must not add lint errors. See `docs/workflows/TESTING.md` for the known pre-existing ones.+Lint must report 0 problems; CI fails otherwise.**Step 15 - Manual testing - golden path**Test the main success case end-to-end:diff --git a/docs/workflows/TESTING.md b/docs/workflows/TESTING.mdindex fff19b2..c4d3b70 100644--- a/docs/workflows/TESTING.md+++ b/docs/workflows/TESTING.md@@ -73,7 +73,7 @@ One ESLint run from the root covers the whole repository. The shared config is `- `backend/tests/**`, `frontend/tests/**`, `frontend/vite.config.ts` and `scripts/**`: Node globals- Root `*.js` and `*.mjs` config files: the ESLint recommended rules with Node globals-Do not add lint errors. The frontend has 7 known errors, all `react-refresh/only-export-components`: in `components/ui/badge.tsx`, `button.tsx`, `sidebar.tsx`, `tabs.tsx` and `toggle.tsx`, and in `context/AppContext.tsx` and `AuthContext.tsx`. These files export a hook or a variants helper next to their component. Any other error is new.+Lint must report 0 problems; the CI workflow fails on any error. The shadcn files that export their cva variants next to the component (`badgeVariants`, `buttonVariants`, `tabsListVariants`, `toggleVariants`, `useSidebar`) and the contexts that export their hooks (`useAppContext`, `useAuth`) are listed in `allowExportNames` for `react-refresh/only-export-components` in `eslint.config.mjs`; editing one of those files reloads the page instead of hot-updating it. Add a name there only for the same pattern.### Formattingdiff --git a/eslint.config.mjs b/eslint.config.mjsindex cf81ea9..b7467f7 100644--- a/eslint.config.mjs+++ b/eslint.config.mjs@@ -22,6 +22,11 @@ export default defineConfig([},rules: {'@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],+ // shadcn files export their cva variants and contexts export their hooks; editing those files reloads the page+ 'react-refresh/only-export-components': ['error', {+ allowConstantExport: true,+ allowExportNames: ['badgeVariants', 'buttonVariants', 'tabsListVariants', 'toggleVariants', 'useSidebar', 'useAppContext', 'useAuth'],+ }],},},{