Skip to content

Commit b67c686

Browse files
committed
chore: add eslint:recommended rules and fixes
1 parent c26b38f commit b67c686

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.eslintrc.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"extends": [
3+
"eslint:recommended",
34
"next",
45
"next/core-web-vitals",
56
"prettier",
@@ -50,5 +51,9 @@
5051
"@typescript-eslint/consistent-type-definitions": ["error", "type"]
5152
}
5253
}
53-
]
54+
],
55+
"env": {
56+
"jest": true,
57+
"es6": true
58+
}
5459
}

components/LocalizedLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useMemo } from 'react';
22
import Link from 'next/link';
33
import { useLocale } from '@/hooks/useLocale';
44
import { linkWithLocale } from '@/util/linkWithLocale';
5-
import type { FC, ComponentProps } from 'react';
5+
import type { FC, ComponentProps, JSX } from 'react';
66

77
// This is a wrapper on HTML's `a` tag
88
const HtmlLink: FC<JSX.IntrinsicElements['a']> = ({ children, ...extra }) => (

0 commit comments

Comments
 (0)