Skip to content

Commit 876f5e2

Browse files
author
Gabriel C.
committed
feat: update docs and biomejs
1 parent 4a0500a commit 876f5e2

File tree

6 files changed

+103
-88
lines changed

6 files changed

+103
-88
lines changed

‎.lintstagedrc.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exportdefault{
22
"*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}": [
3-
"biome check --apply-unsafe --no-errors-on-unmatched",
3+
"biome check --staged --apply-unsafe --no-errors-on-unmatched",
44
],
5-
"*.ts": ["vitest related --run"],
5+
"src/**/*.ts": ["vitest related --run"],
66
"docs/**/*": ["vitepress build docs"],
77
};

‎biome.json‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/1.7.0/schema.json",
33
"organizeImports":{
44
"enabled": true
55
},
66
"linter":{
77
"enabled": true,
88
"rules":{
99
"recommended": true
10-
}
10+
},
11+
"ignore": ["node_modules"]
1112
},
1213
"formatter":{
1314
"enabled": true,
1415
"formatWithErrors": true,
1516
"indentStyle": "space",
1617
"indentWidth": 2,
17-
"lineWidth": 100
18+
"lineWidth": 100,
19+
"ignore": ["node_modules"]
1820
}
1921
}

‎docs/.vitepress/config.ts‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import{defineConfig}from"vitepress";
2+
import{author,license}from"../../package.json";
23

34
// https://vitepress.dev/reference/site-config
45
exportdefaultdefineConfig({
56
title: "LeetCode-ts",
6-
description: "A VitePress Site",
7+
description: "Mastering Coding Challenges in TypeScript",
78
themeConfig: {
8-
// https://vitepress.dev/reference/default-theme-config
9+
siteTitle: "LeetCode-ts",
910
nav: [
1011
{text: "Home",link: "/"},
1112
{text: "Examples",link: "/markdown-examples"},
1213
],
13-
1414
sidebar: [
1515
{
1616
text: "Examples",
@@ -20,7 +20,14 @@ export default defineConfig({
2020
],
2121
},
2222
],
23-
24-
socialLinks: [{icon: "github",link: "https://github.com/vuejs/vitepress"}],
23+
socialLinks: [{icon: "github",link: "https://github.com/Gabb-c/leetcode-ts"}],
24+
search: {
25+
provider: "local",
26+
},
27+
footer: {
28+
message: `Made with ❤️<br/>Released under the ${license} License`,
29+
copyright: `Copyright © 2024-present ${author.name}`,
30+
},
2531
},
32+
cleanUrls: true,
2633
});

‎docs/index.md‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: home
44
hero:
55
name: "LeetCode-ts"
66
text: "Mastering Coding Challenges in TypeScript"
7-
tagline: Various LeetCode coding problems implemented in TypeScript
7+
tagline: LeetCode problems implemented in TypeScript
88
actions:
99
- theme: brand
1010
text: Markdown Examples
@@ -14,11 +14,10 @@ hero:
1414
link: /api-examples
1515

1616
features:
17-
- title: Feature A
18-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
19-
- title: Feature B
20-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
21-
- title: Feature C
22-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
17+
- title: Efficient
18+
details: Optimized solutions for time and space complexity.
19+
- title: Explained
20+
details: Detailed explanations break down the problem and approach.
21+
- title: Tested
22+
details: Unit tests ensure the solution's correctness.
2323
---
24-

‎package.json‎

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
11
{
22
"name": "leetcode-ts",
33
"version": "1.0.0",
4-
"description": "Various LeetCode coding problems implemented in TypeScript",
4+
"description": "Mastering Coding Challenges in TypeScript",
5+
"bugs":{
6+
"url": "https://github.com/Gabb-c/leetcode-ts/issues"
7+
},
8+
"repository":{
9+
"type": "git",
10+
"url": "https://github.com/Gabb-c/leetcode-ts"
11+
},
12+
"funding": "https://github.com/Gabb-c/leetcode-ts?sponsor=1",
13+
"license": "MIT",
14+
"author":{
15+
"name": "Gabb-c",
16+
"url": "https://github.com/Gabb-c"
17+
},
518
"type": "module",
619
"scripts":{
7-
"test": "vitest",
8-
"test:ui": "vitest --ui --api 9527",
920
"bench": "vitest bench",
1021
"coverage": "vitest run --coverage",
22+
"docs:build": "vitepress build docs",
23+
"docs:dev": "vitepress dev docs",
24+
"docs:preview": "vitepress preview docs",
1125
"format": "biome format ./src",
1226
"lint:ci": "biome ci src",
13-
"typecheck": "tsc --noEmit --extendedDiagnostics",
1427
"prepare": "is-ci || husky",
15-
"docs:dev": "vitepress dev docs",
16-
"docs:build": "vitepress build docs",
17-
"docs:preview": "vitepress preview docs"
28+
"test": "vitest",
29+
"test:ui": "vitest --ui --api 9527",
30+
"typecheck": "tsc --noEmit --extendedDiagnostics"
1831
},
19-
"keywords": [],
20-
"author": "",
21-
"license": "ISC",
2232
"devDependencies":{
23-
"@biomejs/biome": "^1.6.4",
33+
"@biomejs/biome": "^1.7.0",
2434
"@commitlint/cli": "^19.2.2",
2535
"@commitlint/config-conventional": "^19.2.2",
2636
"@types/node": "^20.12.7",

0 commit comments

Comments
(0)