Skip to content

Commit 22a481c

Browse files
Hristo HristovHristo Hristov
authored andcommitted
fix(cli): add option for angular templates to disable optionalChainNotNullable check
1 parent c2fb71c commit 22a481c

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/vite.config.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ export default defineConfig({
2121
chunkSizeWarningLimit: 10 * 1024 * 1024 // 10 MB
2222
},
2323
plugins: [
24-
{
25-
name: 'remove-pure-comment',
26-
transform(code, id) {
27-
if (id.includes('node_modules/igniteui-webcomponents-core')) {
28-
return code.replace(/\/\*\s#__PURE__\s\*\//g, '');
29-
}
30-
return code;
31-
}
32-
},
3324
/** Copy static assets */
3425
viteStaticCopy({
3526
targets: [

packages/igx-templates/igx-ts-legacy/projects/_base/files/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
"enableI18nLegacyMessageIdFormat": false,
2626
"strictInjectionParameters": true,
2727
"strictInputAccessModifiers": true,
28-
"strictTemplates": true
28+
"strictTemplates": true,
29+
// TODO: Remove this option when fixing https://infragistics.visualstudio.com/Indigo_Platform/_workitems/edit/30602
30+
"extendedDiagnostics": {
31+
"checks": {
32+
"optionalChainNotNullable": "suppress"
33+
}
34+
}
2935
}
3036
}

packages/igx-templates/igx-ts/projects/_base/files/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
"enableI18nLegacyMessageIdFormat": false,
2828
"strictInjectionParameters": true,
2929
"strictInputAccessModifiers": true,
30-
"strictTemplates": true
30+
"strictTemplates": true,
31+
// TODO: Remove this option when fixing https://infragistics.visualstudio.com/Indigo_Platform/_workitems/edit/30602
32+
"extendedDiagnostics": {
33+
"checks": {
34+
"optionalChainNotNullable": "suppress"
35+
}
36+
}
3137
}
3238
}

0 commit comments

Comments
 (0)