Skip to content

Commit

Permalink
style: disable the "react/react-in-jsx-scope" rule
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCassiere committed Aug 2, 2024
1 parent 44972d3 commit 13cae94
Show file tree
Hide file tree
Showing 23 changed files with 2 additions and 24 deletions.
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ export default tseslint.config(
"no-extra-boolean-cast": "off",
"no-case-declarations": "off",

"react/prop-types": "off",
"react/display-name": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",

"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/consistent-type-imports": "error",
Expand Down
1 change: 0 additions & 1 deletion src/components/primary-module/information-block/common.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { type ReactNode } from "react";

import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { useTranslation } from "react-i18next";

import { type AgreementDataParsed } from "../../../lib/schemas/agreement";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { useQuery } from "@tanstack/react-query";

import type { VehicleDataParsed } from "@/lib/schemas/vehicle";
Expand Down
2 changes: 0 additions & 2 deletions src/components/ui/skeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as React from "react";

import { cn } from "@/lib/utils";

function Skeleton({
Expand Down
1 change: 0 additions & 1 deletion src/routes/-components/auth/header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { useQuery } from "@tanstack/react-query";
import { Link } from "@tanstack/react-router";
import { useAuth } from "react-oidc-context";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { useQuery } from "@tanstack/react-query";
import { Link } from "@tanstack/react-router";
import { useAuth } from "react-oidc-context";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { useSuspenseQuery } from "@tanstack/react-query";
import { createFileRoute } from "@tanstack/react-router";

Expand Down
1 change: 0 additions & 1 deletion src/routes/_auth/(customers)/customers.new.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { createFileRoute } from "@tanstack/react-router";

import { Container } from "@/routes/-components/container";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import type {
DraggableAttributes,
DraggableSyntheticListeners,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { createFileRoute } from "@tanstack/react-router";

import ModuleNotesTabContent from "@/components/primary-module/tabs/notes-content";
Expand Down
1 change: 0 additions & 1 deletion src/routes/_auth/(fleet)/fleet.$vehicleId.edit.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { createFileRoute } from "@tanstack/react-router";

import { Container } from "@/routes/-components/container";
Expand Down
1 change: 0 additions & 1 deletion src/routes/_auth/(fleet)/fleet.new.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { createFileRoute } from "@tanstack/react-router";

import { Container } from "@/routes/-components/container";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { useTranslation } from "react-i18next";

import { Badge } from "@/components/ui/badge";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { useSuspenseQuery } from "@tanstack/react-query";
import { createFileRoute } from "@tanstack/react-router";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { useMutation } from "@tanstack/react-query";
import { useTranslation } from "react-i18next";
import { toast } from "sonner";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import type {
AnyRouter,
LinkOptions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { createFileRoute, Link } from "@tanstack/react-router";
import { useTranslation } from "react-i18next";

Expand Down
1 change: 0 additions & 1 deletion src/routes/_auth/(settings)/settings.rates-and-charges.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { createFileRoute, redirect } from "@tanstack/react-router";

export const Route = createFileRoute(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { createFileRoute, redirect } from "@tanstack/react-router";

export const Route = createFileRoute(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { createFileRoute, redirect } from "@tanstack/react-router";

export const Route = createFileRoute(
Expand Down
1 change: 0 additions & 1 deletion src/routes/_public/logout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { createFileRoute, redirect } from "@tanstack/react-router";

import { Container } from "@/routes/-components/container";
Expand Down
1 change: 0 additions & 1 deletion src/routes/_public/oidc-callback.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { createFileRoute, redirect } from "@tanstack/react-router";
import { hasAuthParams } from "react-oidc-context";
import { z } from "zod";
Expand Down

0 comments on commit 13cae94

Please sign in to comment.