[WEB-5135] refactor: update sites ESLint configuration and refactor imports to use type imports (#7956)

- Enhanced ESLint configuration by adding new rules for import consistency and type imports.
- Refactored multiple files to replace regular imports with type imports for better clarity and performance.
- Ensured consistent use of type imports across the application to align with TypeScript best practices.

Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
Prateek Shourya 2025-10-14 00:40:30 +05:30 committed by GitHub
parent ddf07dc993
commit 9f41e92d21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
78 changed files with 170 additions and 116 deletions

View file

@ -1,7 +1,7 @@
import { notFound, redirect } from "next/navigation";
// plane imports
import { SitesProjectPublishService } from "@plane/services";
import { TProjectPublishSettings } from "@plane/types";
import type { TProjectPublishSettings } from "@plane/types";
const publishService = new SitesProjectPublishService();

View file

@ -1,4 +1,4 @@
import { Metadata } from "next";
import type { Metadata } from "next";
// helpers
import { SPACE_BASE_PATH } from "@plane/constants";
// styles

View file

@ -1,6 +1,6 @@
"use client";
import { FC, ReactNode } from "react";
import type { ReactNode, FC } from "react";
import { ThemeProvider } from "next-themes";
// components
import { TranslationProvider } from "@plane/i18n";