-
Notifications
You must be signed in to change notification settings - Fork 13
/
tsconfig.json
75 lines (72 loc) · 2.4 KB
/
tsconfig.json
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"compilerOptions": {
"baseUrl": ".",
"outDir": "./dist/out-tsc",
"target": "es2022",
"module": "esnext",
"lib": ["es2022", "DOM", "DOM.Iterable"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"inlineSources": true,
"allowJs": true,
"moduleResolution": "node",
"skipLibCheck": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noUnusedLocals": true,
"paths": {
"@sbb-esta/lyne-elements": ["src/elements"],
"@sbb-esta/lyne-elements/*": ["src/elements/*"],
"@sbb-esta/lyne-elements-experimental": ["src/elements-experimental"],
"@sbb-esta/lyne-elements-experimental/*": ["src/elements-experimental/*"],
"@sbb-esta/lyne-react": ["src/react"],
"@sbb-esta/lyne-react/*": ["src/react/*"]
},
"verbatimModuleSyntax": true,
"strict": true,
"importHelpers": true,
/** linting **/
"allowSyntheticDefaultImports": true,
"useDefineForClassFields": false,
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
"types": ["mocha"],
"plugins": [
{
"name": "ts-lit-plugin",
"strict": true,
"rules": {
// The following rules are broken
"no-incompatible-type-binding": "off",
// In the calendar we have properties, that support Date/string/number values
// TODO: Maybe change the signature to only accept a date object.
"no-incompatible-property-type": "off",
// In the calendar component it claims about `now` property, although it's correct.
// TODO: Maybe reactivate if possible
"no-complex-attribute-binding": "off",
"no-unknown-tag-name": "error",
"no-missing-import": "error",
"no-missing-element-type-definition": "error",
"no-unknown-attribute": "error",
"no-unknown-property": "error",
"no-unknown-slot": "error"
},
"globalAttributes": [
"align-self",
"inert",
"sbb-dialog-close",
"sbb-navigation-close",
"sbb-navigation-section-close",
"sbb-overlay-close",
"sbb-popover-close",
"sbb-toast-close",
"sbb-stepper-next",
"sbb-stepper-previous"
]
}
]
},
"include": [".storybook/**/*.ts", "src/**/*.ts", "tools/**/*.ts", "scripts/**/*.ts"],
"exclude": ["node_modules/"]
}