Converts everything to typescript, adding `@ts-expect-error`s where necessary. Also makes some progress converting elements to use decorators, but we're not fully there yet — I think it'll make sense to continue to do that in future PRs, rather than doing it all in one go, just so that we can keep up with the dev branch.
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"outDir": "./dist/",
|
|
"module": "esnext",
|
|
"target": "es6",
|
|
"moduleResolution": "node",
|
|
"allowJs": true,
|
|
"strict": true,
|
|
"noImplicitAny": false,
|
|
"allowSyntheticDefaultImports": true,
|
|
"experimentalDecorators": true,
|
|
"importHelpers": true,
|
|
"sourceMap": true,
|
|
"inlineSources": true,
|
|
"paths": {
|
|
"flexsearch": ["./node_modules/@types/flexsearch"]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "ts-lit-plugin",
|
|
"strict": true,
|
|
"rules": {
|
|
// This seems to produce a bunch of false positives, so we've turned it off for now.
|
|
// Relevant issues:
|
|
// https://github.com/runem/lit-analyzer/issues/293
|
|
// https://github.com/runem/lit-analyzer/issues/302
|
|
// https://github.com/runem/lit-analyzer/issues/266
|
|
"no-missing-import": "off",
|
|
|
|
// ts-lit-plugin also doesn't seem to understand string interpolations in CSS, so this is also turned off.
|
|
"no-invalid-css": "off"
|
|
}
|
|
}
|
|
],
|
|
"skipLibCheck": true
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.js"]
|
|
}
|