add ts-lit-plugin and eslint-typescript disable no-invalid-css rule fix a bunch of errors raised by eslint and typescript run prettier & eslint on the remaining files remove unused imports split coll-index into index and info components... and rename "coll" -> "item" for these. also includes some fixes for previously-undocumented properties used on non-ts elements. extract labeled fields into separate component... and make a few type improvements too swap custom copy button for shoelace one rename a few more missed things
38 lines
1.1 KiB
JSON
38 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"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"include": ["src/**/*.ts"]
|
|
}
|