Skip to content

Commit 9df6cc0

Browse files
committed
chore: updated project standard to use v18.15
1 parent 001b802 commit 9df6cc0

24 files changed

+1616
-2998
lines changed

.eslintrc

+16-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@
2828
"no-constant-condition": 0,
2929
"no-useless-escape": 0,
3030
"no-console": "error",
31+
"no-restricted-globals": [
32+
"error",
33+
{
34+
"name": "global",
35+
"message": "Use `globalThis` instead"
36+
},
37+
{
38+
"name": "window",
39+
"message": "Use `globalThis` instead"
40+
}
41+
],
3142
"require-yield": 0,
3243
"eqeqeq": ["error", "smart"],
3344
"spaced-comment": [
@@ -39,7 +50,8 @@
3950
},
4051
"block": {
4152
"exceptions": ["*"]
42-
}
53+
},
54+
"markers": ["/"]
4355
}
4456
],
4557
"capitalized-comments": [
@@ -80,7 +92,8 @@
8092
],
8193
"pathGroupsExcludedImportTypes": [
8294
"type"
83-
]
95+
],
96+
"newlines-between": "never"
8497
}
8598
],
8699
"@typescript-eslint/no-namespace": 0,
@@ -102,7 +115,7 @@
102115
"@typescript-eslint/consistent-type-imports": ["error"],
103116
"@typescript-eslint/consistent-type-exports": ["error"],
104117
"no-throw-literal": "off",
105-
"@typescript-eslint/no-throw-literal": ["error"],
118+
"@typescript-eslint/no-throw-literal": "off",
106119
"@typescript-eslint/no-floating-promises": ["error", {
107120
"ignoreVoid": true,
108121
"ignoreIIFE": true

docs/assets/highlight.css

+24-17
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
:root {
2-
--light-hl-0: #000000;
3-
--dark-hl-0: #D4D4D4;
4-
--light-hl-1: #A31515;
5-
--dark-hl-1: #CE9178;
6-
--light-hl-2: #001080;
7-
--dark-hl-2: #9CDCFE;
8-
--light-hl-3: #008000;
9-
--dark-hl-3: #6A9955;
10-
--light-hl-4: #795E26;
11-
--dark-hl-4: #DCDCAA;
12-
--light-hl-5: #AF00DB;
13-
--dark-hl-5: #C586C0;
14-
--light-hl-6: #0451A5;
15-
--dark-hl-6: #9CDCFE;
16-
--light-code-background: #F5F5F5;
2+
--light-hl-0: #795E26;
3+
--dark-hl-0: #DCDCAA;
4+
--light-hl-1: #000000;
5+
--dark-hl-1: #D4D4D4;
6+
--light-hl-2: #0000FF;
7+
--dark-hl-2: #569CD6;
8+
--light-hl-3: #A31515;
9+
--dark-hl-3: #CE9178;
10+
--light-hl-4: #001080;
11+
--dark-hl-4: #9CDCFE;
12+
--light-hl-5: #008000;
13+
--dark-hl-5: #6A9955;
14+
--light-hl-6: #AF00DB;
15+
--dark-hl-6: #C586C0;
16+
--light-hl-7: #0451A5;
17+
--dark-hl-7: #9CDCFE;
18+
--light-code-background: #FFFFFF;
1719
--dark-code-background: #1E1E1E;
1820
}
1921

@@ -25,6 +27,7 @@
2527
--hl-4: var(--light-hl-4);
2628
--hl-5: var(--light-hl-5);
2729
--hl-6: var(--light-hl-6);
30+
--hl-7: var(--light-hl-7);
2831
--code-background: var(--light-code-background);
2932
} }
3033

@@ -36,28 +39,31 @@
3639
--hl-4: var(--dark-hl-4);
3740
--hl-5: var(--dark-hl-5);
3841
--hl-6: var(--dark-hl-6);
42+
--hl-7: var(--dark-hl-7);
3943
--code-background: var(--dark-code-background);
4044
} }
4145

42-
body.light {
46+
:root[data-theme='light'] {
4347
--hl-0: var(--light-hl-0);
4448
--hl-1: var(--light-hl-1);
4549
--hl-2: var(--light-hl-2);
4650
--hl-3: var(--light-hl-3);
4751
--hl-4: var(--light-hl-4);
4852
--hl-5: var(--light-hl-5);
4953
--hl-6: var(--light-hl-6);
54+
--hl-7: var(--light-hl-7);
5055
--code-background: var(--light-code-background);
5156
}
5257

53-
body.dark {
58+
:root[data-theme='dark'] {
5459
--hl-0: var(--dark-hl-0);
5560
--hl-1: var(--dark-hl-1);
5661
--hl-2: var(--dark-hl-2);
5762
--hl-3: var(--dark-hl-3);
5863
--hl-4: var(--dark-hl-4);
5964
--hl-5: var(--dark-hl-5);
6065
--hl-6: var(--dark-hl-6);
66+
--hl-7: var(--dark-hl-7);
6167
--code-background: var(--dark-code-background);
6268
}
6369

@@ -68,4 +74,5 @@ body.dark {
6874
.hl-4 { color: var(--hl-4); }
6975
.hl-5 { color: var(--hl-5); }
7076
.hl-6 { color: var(--hl-6); }
77+
.hl-7 { color: var(--hl-7); }
7178
pre, code { background: var(--code-background); }

0 commit comments

Comments
 (0)