Skip to content

Commit 2f153dc

Browse files
authored
feat(tool-stack): update layout and add Rslint tool (#47)
1 parent 2d2235e commit 2f153dc

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

src/tool-stack/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
.tools {
6262
display: flex;
6363
align-items: center;
64-
justify-content: center;
64+
justify-content: flex-start;
6565
flex-wrap: wrap;
6666
gap: 32px;
6767
}

src/tool-stack/index.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ export const ToolStack: React.FC<{ lang: string }> = memo(({ lang }) => {
6565
url: 'https://rstest.rs/',
6666
urlText: 'rstest.rs',
6767
},
68+
{
69+
name: 'Rslint',
70+
desc: isEn
71+
? 'A high-performance JavaScript and TypeScript linter based on typescript-go'
72+
: '基于 typescript-go 的高性能 JavaScript 和 TypeScript 代码检查工具',
73+
logo: 'https://assets.rspack.rs/rslint/rslint-logo.svg',
74+
url: 'https://rslint.rs/',
75+
urlText: 'rslint.rs',
76+
},
6877
];
6978

7079
return (
@@ -73,8 +82,8 @@ export const ToolStack: React.FC<{ lang: string }> = memo(({ lang }) => {
7382
<h1 className={titleStyle}>Rstack</h1>
7483
<p className={descStyle}>
7584
{isEn
76-
? 'A unified JavaScript toolchain built around Rspack, with high performance and consistent architecture'
77-
: '围绕 Rspack 打造的 JavaScript 统一工具链,具有优秀的性能和一致的架构'}
85+
? 'A unified JavaScript toolchain centered on Rspack, with high performance and consistent architecture'
86+
: ' Rspack 为核心的 JavaScript 统一工具链,具有优秀的性能和一致的架构'}
7887
</p>
7988
</div>
8089
<div className={styles.tools}>

stories/SectionStyle.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const sections = [
1919
'Launched as a drop-in replacement for webpack, with more powerful features and exceptional productivity.',
2020
},
2121
{
22-
title: 'Tool Stack',
22+
title: 'Rstack',
2323
description:
24-
'High-performance tool stack built around Rspack to boost modern web development',
24+
'High-performance toolchain centered on Rspack to boost modern web development',
2525
},
2626
];
2727

0 commit comments

Comments
 (0)