Skip to content

Commit c53eebd

Browse files
committed
Update linting policy
1 parent 7e686c1 commit c53eebd

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ module.exports = {
2727
'no-mixed-spaces-and-tabs': 'warn',
2828
'@typescript-eslint/explicit-function-return-type': 'off',
2929
'@typescript-eslint/explicit-member-accessibility': 'off',
30+
'react-hooks/exhaustive-deps': 'off',
31+
'no-unused-vars': [
32+
'error',
33+
{
34+
varsIgnorePattern: '^_',
35+
argsIgnorePattern: '^_',
36+
},
37+
],
3038
},
3139
globals: {
3240
Atomics: 'readonly',

components/errors/errorsPresenter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Link from 'next/link';
22
import styles from './errors.module.scss';
3-
import Image from './errorsViewImage';
3+
import ErrorImage from './errorsViewImage';
44

55
const Presenter = () => {
66
return (
77
<section className={styles.container}>
8-
<Image />
8+
<ErrorImage />
99
<Link href="/">
1010
<div className={styles.btnBackToHome}>Back to Home</div>
1111
</Link>

components/meta/gtm.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ export const useGTM = () => {
88
(function (w, d, s, l, i) {
99
w[l] = w[l] || [];
1010
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
11-
var f = d.getElementsByTagName(s)[0],
11+
const f = d.getElementsByTagName(s)[0],
1212
j = d.createElement(s),
13-
dl = l != 'dataLayer' ? '&l=' + l : '';
13+
dl = l !== 'dataLayer' ? '&l=' + l : '';
1414
j.async = true;
1515
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
1616
f.parentNode.insertBefore(j, f);
1717
})(window, document, 'script', 'dataLayer', GTM_ID);
18-
}, []);
18+
}, [GTM_ID]);
1919
};

components/meta/meta.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ const Meta = (props: TMPropsMeta) => {
4141
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
4242
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
4343
<link rel="manifest" href="/site.webmanifest" />
44-
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/ >
45-
<meta name="msapplication-TileColor" content="#ffc40d"/ >
44+
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
45+
<meta name="msapplication-TileColor" content="#ffc40d" />
4646
<meta name="theme-color" content="#ffffff" />
4747
{props.children}
4848
</Head>

pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ function MyApp({ Component, pageProps }: AppProps) {
1111
return (
1212
<RecoilRoot>
1313
<QueryClientProvider client={queryClient}>
14-
<HydrationBoundary state={pageProps.dehydratedState}>
14+
<HydrationBoundary state={pageProps.dehydratedState}>
1515
<Component {...pageProps} />
16-
</HydrationBoundary >
16+
</HydrationBoundary>
1717
<ReactQueryDevtools initialIsOpen={false} />
1818
</QueryClientProvider>
1919
</RecoilRoot>

0 commit comments

Comments
 (0)