Skip to content

Commit 718b17f

Browse files
authored
fix: fix eslint issues (#3)
1 parent 26b47b3 commit 718b17f

File tree

36 files changed

+1065
-239
lines changed

36 files changed

+1065
-239
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
with:
5858
token: ${{ secrets.GH_TOKEN }}
5959
submodules: true
60-
60+
6161
- name: Create .env file
6262
run: |
6363
echo "NEXT_PUBLIC_ALGOLIA_APP_ID=${{ secrets.NEXT_PUBLIC_ALGOLIA_APP_ID }}" >> .env

.github/workflows/test.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: 🧪 Test
2+
3+
on:
4+
pull_request:
5+
branches: [dev]
6+
workflow_dispatch:
7+
workflow_call:
8+
9+
concurrency:
10+
group: ci-test-${{ github.sha }}
11+
cancel-in-progress: false
12+
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 10
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
25+
token: ${{ secrets.GH_TOKEN }}
26+
27+
- name: Setup Node.js
28+
uses: ./.github/actions/setup-node
29+
with:
30+
npmtoken: ${{ secrets.VERDACCIO_TOKEN }}
31+
32+
- name: Check Build
33+
run: pnpm build
34+
35+
lint:
36+
runs-on: ubuntu-latest
37+
timeout-minutes: 10
38+
steps:
39+
- uses: actions/checkout@v4
40+
with:
41+
submodules: recursive
42+
token: ${{ secrets.GH_TOKEN }}
43+
44+
- name: Setup Node.js
45+
uses: ./.github/actions/setup-node
46+
with:
47+
npmtoken: ${{ secrets.VERDACCIO_TOKEN }}
48+
49+
- name: Check eslint
50+
run: pnpm lint

app/[lang]/[[...mdxPath]]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Metadata } from 'next'
2+
import { generateStaticParamsFor, importPage } from 'nextra/pages'
23
import FeedbackMessage from '@/components/feedback-message'
34
import { useMDXComponents } from '@/mdx-components'
4-
import { generateStaticParamsFor, importPage } from 'nextra/pages'
55

66
export const generateStaticParams = generateStaticParamsFor('mdxPath')
77

app/[lang]/layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { Metadata } from 'next'
2+
import { Layout } from 'nextra-theme-docs'
3+
import { Head } from 'nextra/components'
4+
import { getPageMap } from 'nextra/page-map'
25
import Banner from '@/components/banner'
36
import Copyright from '@/components/copyright'
47
import DocSearch from '@/components/doc-search'
58
import Navbar from '@/components/navbar'
69
import TocBackToTop from '@/components/toc-back-to-top'
7-
import { Layout } from 'nextra-theme-docs'
8-
import { Head } from 'nextra/components'
9-
import { getPageMap } from 'nextra/page-map'
1010

1111
import { version } from '../../package.json'
1212

components/banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use client'
22

3-
import { useTranslation } from '@/hooks/i18n'
43
import Link from 'next/link'
54
import { usePathname } from 'next/navigation'
65
import { Banner as NextraBanner } from 'nextra/components'
6+
import { useTranslation } from '@/hooks/i18n'
77

88
interface IProps {
99
version: string

components/business-plan-notice.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { useTranslation } from '@/hooks/i18n'
21
import { usePathname } from 'next/navigation'
32
import { Callout } from 'nextra/components'
3+
import { useTranslation } from '@/hooks/i18n'
44

55
export default function BusinessPlanNotice() {
66
const pathname = usePathname()

components/feature-box.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

3-
import { useTranslation } from '@/hooks/i18n'
43
import { usePathname } from 'next/navigation'
4+
import { useTranslation } from '@/hooks/i18n'
55

66
export default function FeatureBox() {
77
const pathname = usePathname()

components/feedback-message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use client'
22

3-
import { useTranslation } from '@/hooks/i18n'
43
import { FeelbackTaggedMessage, PRESET_EVALUATION } from '@feelback/react'
54
import { usePathname } from 'next/navigation'
5+
import { useTranslation } from '@/hooks/i18n'
66

77
import '@feelback/react/styles/feelback.css'
88

components/product-selector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use client'
22

3-
import { useTranslation } from '@/hooks/i18n'
4-
import clsx from '@/lib/clsx'
53
import Link from 'next/link'
64
import { usePathname } from 'next/navigation'
75
import { useEffect, useRef, useState } from 'react'
6+
import { useTranslation } from '@/hooks/i18n'
7+
import clsx from '@/lib/clsx'
88

99
function Icon() {
1010
return (

components/server-notice.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use client'
22

3-
import { useTranslation } from '@/hooks/i18n'
43
import { usePathname } from 'next/navigation'
54
import { Callout } from 'nextra/components'
5+
import { useTranslation } from '@/hooks/i18n'
66

77
export default function BusinessPlanNotice() {
88
const pathname = usePathname()

0 commit comments

Comments
 (0)