-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathec.config.mjs
More file actions
33 lines (32 loc) · 844 Bytes
/
ec.config.mjs
File metadata and controls
33 lines (32 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { defineEcConfig } from '@astrojs/starlight/expressive-code';
import { transformerColorizedBrackets } from '@shikijs/colorized-brackets';
import ecTwoSlash from 'expressive-code-twoslash';
import ts from 'typescript';
export default defineEcConfig({
shiki: {
transformers: [transformerColorizedBrackets()],
},
themes: ['dark-plus', 'light-plus'],
plugins: [
ecTwoSlash({
twoslashOptions: {
handbookOptions: {
errors: [2353, 2339, 2307, 2379, 2305, 2345, 7031, 2554, 2375, 2322],
},
compilerOptions: {
moduleResolution: ts.ModuleResolutionKind.Bundler,
target: ts.ScriptTarget.ESNext,
module: ts.ModuleKind.ESNext,
},
},
}),
],
styleOverrides: {
frames: {
editorActiveTabIndicatorBottomColor: 'var(--sl-color-accent)',
},
twoSlash: {
cursorColor: '#f8f8f2',
},
},
});