docs: format JSON examples and replace <docs-code> with fenced code blocks

Replaced <docs-code language="json" header=".postcssrc.json"> with fenced
JSON code blocks using ```json {header: '.postcssrc.json'} for improved
readability and consistency across documentation.
This commit is contained in:
Shuaib Hasan Akib 2025-11-22 00:07:27 +06:00 committed by Kirill Cherkashin
parent 67d3c2529f
commit 68aa83e8cf
14 changed files with 45 additions and 35 deletions

View file

@ -34,7 +34,8 @@ In this case:
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -44,6 +45,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -73,7 +73,8 @@ username: string = 'Angelino';
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {

View file

@ -58,7 +58,8 @@ class MyComponent {}
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -68,6 +69,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -36,18 +36,17 @@ When binding to `attr.`, `class.`, or `style.`, ensure you use the Angular templ
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"textAttributeNotBinding": "suppress"
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"textAttributeNotBinding": "suppress"
}
}
}
}
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -44,7 +44,8 @@ class MyComponent {
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -54,6 +55,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -33,7 +33,8 @@ move this to the value assignment of the binding.
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -43,6 +44,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -65,7 +65,8 @@ class MyComponent {
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -75,6 +76,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -66,7 +66,8 @@ class MyComponent {}
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -76,6 +77,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -42,7 +42,8 @@ class MyComponent {
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -52,6 +53,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -46,7 +46,8 @@ class MyComponent {
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -56,6 +57,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -30,7 +30,8 @@ class AwesomeCheckbox {}
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -40,6 +41,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -46,7 +46,8 @@ class Items {
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -56,6 +57,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -43,7 +43,7 @@ class MyComponent {}
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -53,6 +53,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

View file

@ -46,7 +46,7 @@ class MyComponent {
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
<docs-code language="json">
```json
{
"angularCompilerOptions": {
"extendedDiagnostics": {
@ -56,6 +56,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
}
}
}
</docs-code>
```
See [extended diagnostic configuration](/extended-diagnostics#configuration) for more info.