Skip to content

Commit

Permalink
revert eslint rule to disable requiring react in jsx scope (#163)
Browse files Browse the repository at this point in the history
* revert eslint rule to disable requiring react in jsx scope

* add back in react imports
  • Loading branch information
terryttsai authored Nov 16, 2022
1 parent 7495ea3 commit 4f05579
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ module.exports = {
plugins: ["header"],
rules: {
"header/header": [2, "../license-header.js"],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
},
};
1 change: 1 addition & 0 deletions agency-dashboard/src/AgencyOverview.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// =============================================================================
import { render, screen } from "@testing-library/react";
import React from "react";
import { MemoryRouter } from "react-router-dom";

import AgencyOverview from "./AgencyOverview";
Expand Down
2 changes: 1 addition & 1 deletion agency-dashboard/src/AgencyOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { showToast } from "@justice-counts/common/components/Toast";
import { observer } from "mobx-react-lite";
import { useEffect } from "react";
import React, { useEffect } from "react";
import { useNavigate, useParams } from "react-router-dom";

import { MetricCategory } from "./AgencyOverview.styles";
Expand Down
1 change: 1 addition & 0 deletions agency-dashboard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// =============================================================================

import React from "react";
import { Route, Routes } from "react-router-dom";

import AgencyOverview from "./AgencyOverview";
Expand Down
1 change: 1 addition & 0 deletions agency-dashboard/src/DashboardView.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// =============================================================================
import { render, screen } from "@testing-library/react";
import React from "react";
import { MemoryRouter } from "react-router-dom";

import DashboardView from "./DashboardView";
Expand Down

0 comments on commit 4f05579

Please sign in to comment.