Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix lint

Blue Mouse0d6888dce15b
diff --git a/web/app/lib/models/User.ts b/web/app/lib/models/User.ts
index 3bfa2e42f..ddb9c2f74 100644
--- a/web/app/lib/models/User.ts
+++ b/web/app/lib/models/User.ts
@@ -28,7 +28,7 @@ export enum FeatureFlag {
'dashboard-hostname-cards' = 'dashboard-hostname-cards',
}
-export enum OnboardingStep {
+enum OnboardingStep {
WELCOME = 'welcome',
CREATE_PROJECT = 'create_project',
SETUP_TRACKING = 'setup_tracking',
diff --git a/web/app/pages/Auth/Signin/Signin.tsx b/web/app/pages/Auth/Signin/Signin.tsx
index af4726f06..a270363a5 100644
--- a/web/app/pages/Auth/Signin/Signin.tsx
+++ b/web/app/pages/Auth/Signin/Signin.tsx
@@ -188,7 +188,7 @@ const Signin = () => {
setRefreshToken(refreshToken)
setIsLoading(false)
-
+
// Redirect to onboarding if user hasn't completed it
if (!user.hasCompletedOnboarding) {
navigate(routes.onboarding)
diff --git a/web/app/pages/Onboarding/index.tsx b/web/app/pages/Onboarding/index.tsx
index c26d51492..f93e3118c 100644
--- a/web/app/pages/Onboarding/index.tsx
+++ b/web/app/pages/Onboarding/index.tsx
@@ -1 +1 @@
-export { default } from './Onboarding'
\ No newline at end of file
+export { default } from './Onboarding'
diff --git a/web/app/routes/onboarding.tsx b/web/app/routes/onboarding.tsx
index 8d9b128a5..a3305d37f 100644
--- a/web/app/routes/onboarding.tsx
+++ b/web/app/routes/onboarding.tsx
@@ -11,4 +11,4 @@ export const meta: MetaFunction = () => {
export default function OnboardingRoute() {
return <Onboarding />
-}
\ No newline at end of file
+}
diff --git a/web/knip.jsonc b/web/knip.jsonc
index 2c3dde29b..f5816c7b4 100644
--- a/web/knip.jsonc
+++ b/web/knip.jsonc
@@ -5,12 +5,10 @@
"@tailwindcss/forms",
"@tailwindcss/typography",
"tailwindcss",
- "eslint-import-resolver-node",
- "eslint-import-resolver-typescript"
+ "eslint-import-resolver-node"
],
"ignoreBinaries": ["flyctl"],
"ignore": ["./ecosystem.config.js", "./app/routes.ts", "./react-router.config.ts", "./app/routes/[robots.txt].tsx"],
- "entry": ["./app/root.tsx"],
"project": ["./app/**/*.{js,ts,tsx,jsx,cjs}"],
"paths": {
"~/*": ["./app/*"]