From 6071b6c054ad73d9c7533a1f0f6f2d1517eb1c13 Mon Sep 17 00:00:00 2001 From: Yury Shkoda Date: Wed, 20 Oct 2021 15:51:11 +0300 Subject: [PATCH] chore(web): fix linting --- web/src/reportWebVitals.ts | 18 +++++++++--------- web/src/setupTests.ts | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/web/src/reportWebVitals.ts b/web/src/reportWebVitals.ts index 49a2a16..57a24a2 100644 --- a/web/src/reportWebVitals.ts +++ b/web/src/reportWebVitals.ts @@ -1,15 +1,15 @@ -import { ReportHandler } from 'web-vitals'; +import { ReportHandler } from 'web-vitals' const reportWebVitals = (onPerfEntry?: ReportHandler) => { if (onPerfEntry && onPerfEntry instanceof Function) { import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); + getCLS(onPerfEntry) + getFID(onPerfEntry) + getFCP(onPerfEntry) + getLCP(onPerfEntry) + getTTFB(onPerfEntry) + }) } -}; +} -export default reportWebVitals; +export default reportWebVitals diff --git a/web/src/setupTests.ts b/web/src/setupTests.ts index 8f2609b..52aaef1 100644 --- a/web/src/setupTests.ts +++ b/web/src/setupTests.ts @@ -2,4 +2,4 @@ // allows you to do things like: // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom -import '@testing-library/jest-dom'; +import '@testing-library/jest-dom'