mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-08 09:34:16 +00:00
201e5fcd53
* Use fewer syntax highlighter languages. Reduces client.js size by about 250kB (800kB uncompressed) Common languages: bash, c, cpp, csharp, css, diff, go, graphql, ini, java, javascript, json, kotlin, less, lua, makefile, markdown, objectivec, perl, php-template, php, plaintext, python-repl, python, r, ruby, rust, scss, shell, sql, swift, typescript, vbnet, wasm, xml, yaml Additionally enabled languages: dockerfile, pgsql * Configurable syntax highlighter languages Allows to individually enable languages. * Lazy load syntax highlighter languages Allows to enable additional languages that will not be autodetected. * Include highlight.js in dynamic import check
34 lines
791 B
JSON
34 lines
791 B
JSON
{
|
|
"compilerOptions": {
|
|
"pretty": true,
|
|
"target": "esnext",
|
|
"module": "esnext",
|
|
"allowSyntheticDefaultImports": true,
|
|
"preserveConstEnums": true,
|
|
"sourceMap": true,
|
|
"moduleResolution": "node",
|
|
"lib": ["es2017", "dom"],
|
|
"types": ["inferno"],
|
|
"jsx": "preserve",
|
|
"noUnusedLocals": true,
|
|
"baseUrl": "./src",
|
|
"noEmit": true,
|
|
"skipLibCheck": true,
|
|
"noUnusedParameters": true,
|
|
"noImplicitReturns": true,
|
|
"experimentalDecorators": true,
|
|
"strictNullChecks": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"paths": {
|
|
"@/*": ["/*"],
|
|
"@utils/*": ["shared/utils/*"]
|
|
}
|
|
},
|
|
"include": [
|
|
"src/shared/build-config.d.ts",
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"node_modules/inferno/dist/index.d.ts"
|
|
]
|
|
}
|