Skip to content

Commit 33f7209

Browse files
committed
lint fixes
1 parent 020f1a2 commit 33f7209

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

eslint.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import globals from "globals";
22
import eslint from "@eslint/js";
33
import tseslint from "typescript-eslint";
44
import pluginReact from "eslint-plugin-react";
5-
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
5+
66

77
export default tseslint.config(
88
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
99
{ languageOptions: { globals: globals.browser } },
1010
eslint.configs.recommended,
1111
tseslint.configs.recommended,
1212
pluginReact.configs.flat.recommended,
13-
eslintPluginPrettierRecommended,
1413
{
1514
settings: {
1615
react: {

src/App.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from "react";
2-
import { render, screen } from "@testing-library/react";
3-
import App from "./App";
2+
import { render} from "@testing-library/react";
43
import PhotoOfTheDay from "./Components/photoOfTheDay";
54

65
test("renders photo of the day", () => {

src/Components/photoOfTheDay.spec.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import '@testing-library/jest-dom';
22
import PhotoOfTheDay from './photoOfTheDay'
3-
import App from '../App'
43
import { render, waitFor } from '@testing-library/react';
5-
4+
import React from 'react';
65

76
describe (PhotoOfTheDay, ()=>{
87

@@ -37,7 +36,6 @@ describe (PhotoOfTheDay, ()=>{
3736
const testImage = document.querySelector("img") as HTMLImageElement;
3837
await waitFor(() => {
3938
expect(testImage).toBeInTheDocument;
40-
4139
})})
4240

4341
})

src/reportWebVitals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReportHandler } from "web-vitals";
1+
import { ReportHandler } from "web-vitals"
22

33
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
44
if (onPerfEntry && onPerfEntry instanceof Function) {

0 commit comments

Comments
 (0)