Skip to content

Commit f0471c3

Browse files
committed
Housekeeps
1 parent 8ca5abb commit f0471c3

18 files changed

Lines changed: 790 additions & 819 deletions
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
23
"printWidth": 120,
34
"singleQuote": false,
45
"trailingComma": "es5",
56
"arrowParens": "avoid",
67
"proseWrap": "always",
8+
"ignorePatterns": ["apps/web/src/codes.ts"],
79
"overrides": [
810
{
9-
"files": "*.md",
11+
"files": ["*.md"],
1012
"options": {
1113
"printWidth": 80,
1214
"proseWrap": "always"
1315
}
14-
},
15-
{
16-
"files": "apps/web/src/codes.ts",
17-
"options": {
18-
"printWidth": 500
19-
}
2016
}
2117
]
2218
}

.oxlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json"
3+
}

apps/web/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
99
<meta name="description" content="About ANSI.tools" />
10-
<link rel="prefetch" href="/" />
10+
<link rel="prefetch" href="/" vite-ignore />
1111
<meta property="og:title" content="ANSI Escape Codes" />
1212
<meta property="og:description" content="About ANSI.tools" />
1313
<meta property="og:type" content="website" />

apps/web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
name="description"
1111
content="View and inspect ANSI escape sequences in the browser. See a visual rendering and a detailed breakdown of all control codes."
1212
/>
13-
<link rel="prefetch" href="/lookup" />
13+
<link rel="prefetch" href="/lookup" vite-ignore />
1414
<meta property="og:title" content="ANSI Escape Codes" />
1515
<meta
1616
property="og:description"

apps/web/lookup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
99
<meta name="description" content="Lookup table for ANSI control codes and escape sequences" />
10-
<link rel="prefetch" href="/" />
10+
<link rel="prefetch" href="/" vite-ignore />
1111
<meta property="og:title" content="ANSI Escape Codes" />
1212
<meta property="og:description" content="Lookup table for ANSI control codes and escape sequences" />
1313
<meta property="og:type" content="website" />

apps/web/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
{
22
"name": "@ansi-tools/web",
3-
"private": true,
43
"version": "0.0.0",
4+
"private": true,
55
"description": "Paste strings containing ANSI escape codes.",
6-
"main": "src/main.ts",
6+
"keywords": [
7+
"ansi",
8+
"escape codes",
9+
"web application"
10+
],
11+
"license": "ISC",
12+
"author": "Lars Kappert <lars@webpro.nl>",
713
"type": "module",
14+
"main": "src/main.ts",
815
"scripts": {
916
"predev": "pnpm -F @ansi-tools/parser dev &",
1017
"dev": "vite",
@@ -14,21 +21,14 @@
1421
"test": "pnpm type-check && node --test src/**/*.test.ts",
1522
"type-check": "tsc"
1623
},
17-
"keywords": [
18-
"ansi",
19-
"escape codes",
20-
"web application"
21-
],
22-
"author": "Lars Kappert <lars@webpro.nl>",
23-
"license": "ISC",
2424
"dependencies": {
2525
"@ansi-tools/parser": "workspace:*",
26-
"ansi-to-pre": "^1.0.6",
26+
"ansi-to-pre": "^1.0.7",
2727
"isum": "^1.1.0"
2828
},
2929
"devDependencies": {
30-
"@types/node": "^24.7.2",
30+
"@types/node": "^24.12.0",
3131
"typescript": "^5.9.3",
32-
"vite": "7.0.4"
32+
"vite": "^8.0.0"
3333
}
3434
}

apps/web/src/css/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ footer {
9696
span {
9797
display: flex;
9898
align-items: center;
99-
gap: .75rem;
99+
gap: 0.75rem;
100100
}
101101
}
102102
& a {

apps/web/src/css/output.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
background-position: 0 0;
4141
}
4242

43-
#output-container .content.grid-visible.light-bg {
43+
#output-container .content.grid-visible.light-bg {
4444
background-image:
4545
linear-gradient(to right, rgba(128, 128, 128, 0.2) 1px, transparent 1px),
4646
linear-gradient(to bottom, rgba(128, 128, 128, 0.2) 1px, transparent 1px);

apps/web/src/util/settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export function createSettingsStore<T extends object>(key: string, defaults: T):
2121
) as unknown as Store<T>;
2222

2323
effect(() => {
24+
// oxlint-disable-next-line no-unused-expressions
2425
typeof localStorage !== "undefined" && localStorage.setItem(storageKey, JSON.stringify(store));
2526
});
2627

package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
{
22
"name": "ansi-tools",
3-
"private": true,
43
"version": "0.0.0",
5-
"author": "Lars Kappert <lars@webpro.nl>",
4+
"private": true,
65
"license": "ISC",
7-
"packageManager": "pnpm@10.18.3"
6+
"author": "Lars Kappert <lars@webpro.nl>",
7+
"scripts": {
8+
"lint": "oxlint",
9+
"format": "oxfmt"
10+
},
11+
"devDependencies": {
12+
"oxfmt": "^0.40.0",
13+
"oxlint": "^1.55.0"
14+
},
15+
"packageManager": "pnpm@10.32.1"
816
}

0 commit comments

Comments
 (0)