Skip to content

Commit 9244b9b

Browse files
committed
chore: update tsconfig and eslintrc
1 parent 55f698e commit 9244b9b

File tree

11 files changed

+21
-20
lines changed

11 files changed

+21
-20
lines changed

.eslintrc.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
"*.ts"
1010
],
1111
"parserOptions": {
12-
"project": [
13-
"./tsconfig.json"
14-
],
1512
"createDefaultProgram": true
1613
},
1714
"extends": [
@@ -43,9 +40,13 @@
4340
"*.html"
4441
],
4542
"extends": [
46-
"plugin:@angular-eslint/template/recommended"
43+
"plugin:@angular-eslint/template/recommended",
44+
"plugin:@angular-eslint/template/accessibility"
4745
],
48-
"rules": {}
46+
"rules": {
47+
"@angular-eslint/template/elements-content": "off",
48+
"@angular-eslint/template/alt-text": "off"
49+
}
4950
}
5051
]
5152
}

projects/coreui-angular-chartjs/.eslintrc.json

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
"*.ts"
1010
],
1111
"parserOptions": {
12-
"project": [
13-
"./tsconfig.json"
14-
],
1512
"createDefaultProgram": true
1613
},
1714
"rules": {

projects/coreui-angular-chartjs/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"lodash-es": "^4.17.21",
3636
"tslib": "^2.3.0"
3737
},
38+
"sideEffects": false,
3839
"keywords": [
3940
"coreui",
4041
"coreui-chartjs",

projects/coreui-angular/.eslintrc.json

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
"*.ts"
1010
],
1111
"parserOptions": {
12-
"project": [
13-
"./tsconfig.json"
14-
],
1512
"createDefaultProgram": true
1613
},
1714
"rules": {

projects/coreui-angular/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@popperjs/core": "~2.11.6",
2222
"tslib": "^2.3.0"
2323
},
24+
"sideEffects": false,
2425
"peerDependencies": {
2526
"@angular/animations": "^17.0.0",
2627
"@angular/cdk": "^17.0.0",

projects/coreui-icons-angular/.eslintrc.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
"*.ts"
1010
],
1111
"parserOptions": {
12-
"project": [
13-
"./tsconfig.json"
14-
],
1512
"createDefaultProgram": true
1613
},
1714
"rules": {
@@ -24,7 +21,7 @@
2421
}
2522
],
2623
"@angular-eslint/component-selector": [
27-
"warn",
24+
"error",
2825
{
2926
"type": "element",
3027
"prefix": "c",

projects/coreui-icons-angular/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"dependencies": {
3434
"tslib": "^2.3.0"
3535
},
36+
"sideEffects": false,
3637
"keywords": [
3738
"coreui",
3839
"coreui-icons",

projects/coreui-icons-angular/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "../../tsconfig.json",
23
"files": [],
34
"references": [
45
{

projects/coreui-icons-angular/tsconfig.lib.prod.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
{
33
"extends": "./tsconfig.lib.json",
44
"compilerOptions": {
5-
"declarationMap": false
5+
"declarationMap": false,
66
},
77
"angularCompilerOptions": {
88
"compilationMode": "partial"
9-
}
9+
},
10+
"include": [
11+
"src/**/*.ts",
12+
"src/**/*.d.ts"
13+
]
1014
}

projects/coreui-icons-angular/tsconfig.spec.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
],
1313
"include": [
1414
"**/*.spec.ts",
15-
"**/*.d.ts"
15+
"**/*.d.ts",
16+
"**/*.ts"
1617
]
1718
}

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"noPropertyAccessFromIndexSignature": false,
2222
"noImplicitReturns": true,
2323
"noFallthroughCasesInSwitch": true,
24+
"esModuleInterop": true,
2425
"sourceMap": true,
2526
"declaration": false,
26-
"downlevelIteration": true,
2727
"experimentalDecorators": true,
2828
"moduleResolution": "node",
2929
"importHelpers": true,
@@ -36,7 +36,7 @@
3636
"lib": [
3737
"ES2022",
3838
"dom"
39-
],
39+
]
4040
},
4141
"angularCompilerOptions": {
4242
"enableI18nLegacyMessageIdFormat": false,

0 commit comments

Comments
 (0)