Skip to content

Commit 4453b24

Browse files
authored
chore: align tsconfigs (#1873)
* chore: align tsconfigs * chore: adjust tokens build
1 parent b5e58e4 commit 4453b24

File tree

104 files changed

+2229
-1388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+2229
-1388
lines changed

docs/src/assets/data/components.json

Lines changed: 963 additions & 444 deletions
Large diffs are not rendered by default.

libs/nx/src/executors/build-core/executor.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ async function createTestingSelectors(options: BuildCoreExecutorSchema) {
5252
)
5353
}
5454

55-
function parseTestingSelectorTypes(fileContent) {
55+
function parseTestingSelectorTypes(fileContent: string) {
5656
const sourceFile = createSourceFile(fileContent)
5757
const variableStatementsNode = filterVariableStatement(sourceFile.statements)
5858
const properties = variableStatementsNode[0].declarationList.declarations[0].initializer.properties
59-
const selectors = {}
60-
properties.forEach(commandNode => {
59+
const selectors = {} as any
60+
properties.forEach((commandNode: any) => {
6161
const commandComment = parseSelectorComment(commandNode, sourceFile)
6262
const selectorsList = []
6363

@@ -108,18 +108,18 @@ async function createTestingDocs(options: BuildCoreExecutorSchema) {
108108
)
109109
}
110110

111-
function parseTestingType(fileContent, filePath) {
111+
function parseTestingType(fileContent: string, filePath: string) {
112112
const sourceFile = createSourceFile(fileContent)
113113
const moduleDeclarationNode = filterModuleDeclaration(sourceFile.statements)
114114
const interfaceDeclarationNode = filterInterfaceDeclaration(moduleDeclarationNode.body.statements)
115-
const commands = []
116-
interfaceDeclarationNode.members.forEach(commandNode => {
115+
const commands = [] as any[]
116+
interfaceDeclarationNode.members.forEach((commandNode: any) => {
117117
commands.push({
118118
name: commandNode.name.escapedText,
119119
description: parseFunctionComment(commandNode, sourceFile),
120120
signature: commandNode.getText(sourceFile).replace(commandNode.name.escapedText, ''),
121121
path: filePath,
122-
component: filePath.split(sep).pop().replace('.types.ts', ''),
122+
component: filePath.split(sep).pop()?.replace('.types.ts', ''),
123123
})
124124
})
125125
return commands

libs/nx/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"module": "commonjs"
4+
"module": "commonjs",
5+
"strict": false
56
},
67
"files": [],
78
"include": [],

libs/output-target-angular/tsconfig.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"module": "commonjs",
5-
"forceConsistentCasingInFileNames": true,
6-
"strict": true,
7-
"noImplicitOverride": true,
8-
"noPropertyAccessFromIndexSignature": true,
9-
"noImplicitReturns": true,
10-
"noFallthroughCasesInSwitch": true
4+
"module": "commonjs"
115
},
126
"files": [],
137
"include": [],

libs/output-target-web/tsconfig.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"module": "commonjs",
5-
"forceConsistentCasingInFileNames": true,
6-
"strict": true,
7-
"noImplicitOverride": true,
8-
"noPropertyAccessFromIndexSignature": true,
9-
"noImplicitReturns": true,
10-
"noFallthroughCasesInSwitch": true
4+
"module": "commonjs"
115
},
126
"files": [],
137
"include": [],

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"@swc/cli": "0.6.0",
6565
"@swc/core": "1.5.29",
6666
"@swc/helpers": "0.5.15",
67+
"@types/big.js": "^6.2.2",
6768
"@types/node": "22.13.1",
6869
"@typescript-eslint/eslint-plugin": "7.16.0",
6970
"@typescript-eslint/parser": "7.16.0",

packages/angular/tsconfig.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "es2022",
4-
"useDefineForClassFields": false,
5-
"forceConsistentCasingInFileNames": true,
6-
"strict": true,
7-
"noImplicitOverride": true,
8-
"noPropertyAccessFromIndexSignature": true,
9-
"noImplicitReturns": true,
10-
"noFallthroughCasesInSwitch": true
4+
"useDefineForClassFields": false
115
},
126
"files": [],
137
"include": [],

packages/brand-icons/tsconfig.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
{
22
"extends": "../../tsconfig.base.json",
3-
"compilerOptions": {
4-
"module": "ESNext",
5-
"forceConsistentCasingInFileNames": true,
6-
"strict": true,
7-
"noImplicitOverride": true,
8-
"noPropertyAccessFromIndexSignature": true,
9-
"noImplicitReturns": true,
10-
"noFallthroughCasesInSwitch": true
11-
},
3+
"compilerOptions": {},
124
"files": [],
135
"include": [],
146
"references": [

packages/core/src/components.d.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { FooterLink } from "@baloise/web-app-utils";
1414
import { BalListItemAccordionBodyAria } from "./components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body";
1515
import { BalListItemAccordionHeadAria } from "./components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head";
1616
import { OverlayEventDetail } from "./components/bal-modal/bal-modal.type";
17+
import { FormInput } from "./utils/form-input";
1718
import { PopoverPresentOptions } from "./components/bal-popover/bal-popover";
1819
import { BalRadioOption } from "./components/bal-radio/bal-radio.type";
1920
import { SegmentValue } from "./components/bal-segment/bal-segment.types";
@@ -28,6 +29,7 @@ export { FooterLink } from "@baloise/web-app-utils";
2829
export { BalListItemAccordionBodyAria } from "./components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body";
2930
export { BalListItemAccordionHeadAria } from "./components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head";
3031
export { OverlayEventDetail } from "./components/bal-modal/bal-modal.type";
32+
export { FormInput } from "./utils/form-input";
3133
export { PopoverPresentOptions } from "./components/bal-popover/bal-popover";
3234
export { BalRadioOption } from "./components/bal-radio/bal-radio.type";
3335
export { SegmentValue } from "./components/bal-segment/bal-segment.types";
@@ -171,7 +173,7 @@ export namespace Components {
171173
/**
172174
* Defines the nature of the accordion trigger.
173175
*/
174-
"variant": BalProps.BalAccordionTriggerVariant;
176+
"variant"?: BalProps.BalAccordionTriggerVariant;
175177
}
176178
interface BalApp {
177179
/**
@@ -231,7 +233,7 @@ export namespace Components {
231233
* If `true` the button is a popup.
232234
* @default undefined
233235
*/
234-
"balPopup": any;
236+
"balPopup": undefined;
235237
/**
236238
* The color to use from your application's color palette.
237239
* @default 'primary'
@@ -797,7 +799,7 @@ export namespace Components {
797799
/**
798800
* Find the options properties by its value
799801
*/
800-
"getOptionByValue": (value: string) => Promise<BalCheckboxOption>;
802+
"getOptionByValue": (value: string) => Promise<BalCheckboxOption | undefined>;
801803
/**
802804
* Defines the layout of the checkbox button
803805
* @default undefined
@@ -2904,7 +2906,7 @@ export namespace Components {
29042906
/**
29052907
* Updates options
29062908
*/
2907-
"updateSelected": (values?: string[]) => Promise<void>;
2909+
"updateSelected": (values: string[]) => Promise<void>;
29082910
}
29092911
interface BalPagination {
29102912
/**
@@ -3314,7 +3316,7 @@ export namespace Components {
33143316
/**
33153317
* Find the options properties by its value
33163318
*/
3317-
"getOptionByValue": (value: string) => Promise<BalRadioOption>;
3319+
"getOptionByValue": (value: string) => Promise<BalRadioOption | undefined>;
33183320
/**
33193321
* Defines the layout of the radio button
33203322
* @default undefined
@@ -3501,7 +3503,7 @@ export namespace Components {
35013503
/**
35023504
* Returns the value of the component
35033505
*/
3504-
"getValue": () => Promise<string[]>;
3506+
"getValue": () => Promise<string[] | undefined>;
35053507
/**
35063508
* If `true` the component gets a invalid style.
35073509
* @default false
@@ -3916,7 +3918,7 @@ export namespace Components {
39163918
/**
39173919
* Find the options properties by its value
39183920
*/
3919-
"getOptionByValue": (value: string) => Promise<BalStepOption>;
3921+
"getOptionByValue": (value: string) => Promise<BalStepOption | undefined>;
39203922
/**
39213923
* Steps can be passed as a property or through HTML markup.
39223924
* @default []
@@ -4099,7 +4101,7 @@ export namespace Components {
40994101
/**
41004102
* Find the options properties by its value
41014103
*/
4102-
"getOptionByValue": (value: string) => Promise<BalTabOption>;
4104+
"getOptionByValue": (value: string) => Promise<BalTabOption | undefined>;
41034105
/**
41044106
* If `true` then isTabList becomes true even if there is a link in the list.
41054107
* @default false
@@ -6255,7 +6257,7 @@ declare namespace LocalJSX {
62556257
* If `true` the button is a popup.
62566258
* @default undefined
62576259
*/
6258-
"balPopup"?: any;
6260+
"balPopup"?: undefined;
62596261
/**
62606262
* The color to use from your application's color palette.
62616263
* @default 'primary'

0 commit comments

Comments
 (0)