Skip to content

Commit 7725899

Browse files
authored
Merge pull request #106 from bbonkr/dependabot/npm_and_yarn/dev/eslint-8.35.0
Bump eslint from 7.32.0 to 8.35.0
2 parents dfc8a9d + a05e09a commit 7725899

File tree

9 files changed

+1206
-4629
lines changed

9 files changed

+1206
-4629
lines changed

next-i18next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const config = {
22
i18n: {
33
defaultLocale: 'ko',
44
locales: ['ko', 'en', 'ru'],
5-
defaultNS: 'common',
5+
// defaultNS: 'common',
66
localeDetection: false,
77
},
88
};

package-lock.json

+1,177-4,614
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
"author": "Pon Cheol Ku <[email protected]> (http://bbon.kr/)",
1515
"license": "MIT",
1616
"devDependencies": {
17-
"@tailwindcss/typography": "^0.4.1",
17+
"@tailwindcss/typography": "^0.5.12",
1818
"@types/react": "^18.0.12",
1919
"@types/react-dom": "^17.0.11",
20-
"autoprefixer": "^10.4.0",
21-
"eslint": "^7.32.0",
20+
"autoprefixer": "^10.4.19",
21+
"eslint": "^8.35.0",
2222
"eslint-config-next": "^12.1.6",
2323
"eslint-config-prettier": "^8.3.0",
24-
"postcss": "^8.4.14",
25-
"tailwindcss": "^3.2.7",
24+
"postcss": "^8.4.38",
25+
"tailwindcss": "^3.4.3",
2626
"typescript": "^4.7.2",
2727
"vercel": "^23.1.2"
2828
},

src/components/Debug/Debug.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ import { useTranslation } from 'react-i18next';
55
const Debug = () => {
66
const { i18n, t } = useTranslation();
77
const router = useRouter();
8+
9+
const debugTitleTranslated = t('debug.title');
10+
811
return (
912
<div className="flex flex-col">
10-
<h3 className="text-lg">{t('debug.title')}</h3>
13+
<h3 className="text-lg">{debugTitleTranslated}</h3>
1114
<hr className="my-1 border-0" />
1215

1316
<pre className="bg-gray-600 rounded-md p-6 text-gray-50">

src/components/Navigator/Navigator.tsx

+9-2
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,25 @@ type NavigatorProps = {
1010

1111
const Navigator = ({ href, label, onClick }: NavigatorProps) => {
1212
const { t } = useTranslation();
13+
14+
const navigatorLinkTranslated = t('navigator.link');
15+
const navigatorRouterTranslated = t('navigator.router');
1316
return (
1417
<div className="flex justify-center items-start p-3">
1518
<div className="flex flex-col px-3">
16-
<label className="text-sm mb-1">{t('navigator.link')}</label>
19+
<label className="text-sm mb-1">
20+
{navigatorLinkTranslated}
21+
</label>
1722
<Link href={href}>
1823
<a className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded text-center">
1924
{label}
2025
</a>
2126
</Link>
2227
</div>
2328
<div className="flex flex-col px-3">
24-
<label className="text-sm mb-1">{t('navigator.router')}</label>
29+
<label className="text-sm mb-1">
30+
{navigatorRouterTranslated}
31+
</label>
2532
<button
2633
onClick={onClick}
2734
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"

src/components/common/Header/Header.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useCallback, useEffect, useMemo } from 'react';
1+
import React, { useCallback, useMemo } from 'react';
22
import Link from 'next/link';
33
import { useRouter } from 'next/router';
44
import { useTranslation } from 'react-i18next';
@@ -52,13 +52,15 @@ const Header = () => {
5252
[],
5353
);
5454

55+
const titleTranslated = t('global.title');
56+
5557
return (
5658
<header className="bg-gray-800 ">
5759
<nav className="container mx-auto flex justify-between px-6 py-3">
5860
<div className="flex justify-start items-center">
5961
<p className="text-lg text-gray-300 shadow-sm">
6062
<Link href="/">
61-
<a>{t('global.title')}</a>
63+
<a>{titleTranslated}</a>
6264
</Link>
6365
</p>
6466
</div>

src/pages/about.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useCallback } from 'react';
22
import { useTranslation } from 'next-i18next';
33
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
4-
import Link from 'next/link';
54
import { useRouter } from 'next/router';
65
import Layout from '../components/common/Layout';
76
import Content from '../components/Content';

src/pages/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useCallback } from 'react';
22
import { useTranslation } from 'next-i18next';
33
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
4-
import Link from 'next/link';
54
import { useRouter } from 'next/router';
65
import Layout from '../components/common/Layout';
76
import Content from '../components/Content';

tailwind.config.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
const typography = require('@tailwindcss/typography');
22

3+
/** @type {import('tailwindcss').Config} */
34
module.exports = {
4-
purge: [],
5-
darkMode: false, // or 'media' or 'class'
5+
content: [
6+
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
7+
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
8+
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
9+
],
610
theme: {
711
extend: {},
812
},

0 commit comments

Comments
 (0)