Skip to content

Commit 9ae2236

Browse files
committed
Use consistent (two-space) indentation in all tsconfig code blocks
1 parent 699e65d commit 9ae2236

File tree

6 files changed

+37
-37
lines changed

6 files changed

+37
-37
lines changed

packages/tsconfig-reference/copy/en/options/customConditions.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ For example, when this field is set in a `tsconfig.json` as so:
1010

1111
```json tsconfig
1212
{
13-
"compilerOptions": {
14-
"target": "es2022",
15-
"moduleResolution": "bundler",
16-
"customConditions": ["my-condition"]
17-
}
13+
"compilerOptions": {
14+
"target": "es2022",
15+
"moduleResolution": "bundler",
16+
"customConditions": ["my-condition"]
17+
}
1818
}
1919
```
2020

@@ -24,15 +24,15 @@ So when importing from a package with the following `package.json`
2424

2525
```jsonc
2626
{
27-
// ...
28-
"exports": {
29-
".": {
30-
"my-condition": "./foo.mjs",
31-
"node": "./bar.mjs",
32-
"import": "./baz.mjs",
33-
"require": "./biz.mjs"
34-
}
27+
// ...
28+
"exports": {
29+
".": {
30+
"my-condition": "./foo.mjs",
31+
"node": "./bar.mjs",
32+
"import": "./baz.mjs",
33+
"require": "./biz.mjs"
3534
}
35+
}
3636
}
3737
```
3838

packages/tsconfig-reference/copy/en/options/moduleSuffixes.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Provides a way to override the default list of file name suffixes to search when
77

88
```json tsconfig
99
{
10-
"compilerOptions": {
11-
"moduleSuffixes": [".ios", ".native", ""]
12-
}
10+
"compilerOptions": {
11+
"moduleSuffixes": [".ios", ".native", ""]
12+
}
1313
}
1414
```
1515

packages/tsconfig-reference/copy/en/options/noUncheckedSideEffectImports.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Your bundler might be configured in such a way where you can include specific `.
2222
import "./button-component.css";
2323

2424
export function Button() {
25-
// ...
25+
// ...
2626
}
2727
```
2828

packages/tsconfig-reference/copy/en/options/paths.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ This would allow you to be able to write `import "jquery"`, and get all of the c
2323
{
2424
"compilerOptions": {
2525
"paths": {
26-
"app/*": ["./src/app/*"],
27-
"config/*": ["./src/app/_config/*"],
28-
"environment/*": ["./src/environments/*"],
29-
"shared/*": ["./src/app/_shared/*"],
30-
"helpers/*": ["./src/helpers/*"],
31-
"tests/*": ["./src/tests/*"]
26+
"app/*": ["./src/app/*"],
27+
"config/*": ["./src/app/_config/*"],
28+
"environment/*": ["./src/environments/*"],
29+
"shared/*": ["./src/app/_shared/*"],
30+
"helpers/*": ["./src/helpers/*"],
31+
"tests/*": ["./src/tests/*"]
3232
}
3333
}
3434
}

packages/tsconfig-reference/copy/en/options/resolveJsonModule.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ TypeScript does not support resolving JSON files by default:
1212
// @errors: 2732
1313
// @filename: settings.json
1414
{
15-
"repo": "TypeScript",
16-
"dry": false,
17-
"debug": false
15+
"repo": "TypeScript",
16+
"dry": false,
17+
"debug": false
1818
}
1919
// @filename: index.ts
2020
import settings from "./settings.json";
@@ -32,9 +32,9 @@ Enabling the option allows importing JSON, and validating the types in that JSON
3232
// @moduleResolution: node
3333
// @filename: settings.json
3434
{
35-
"repo": "TypeScript",
36-
"dry": false,
37-
"debug": false
35+
"repo": "TypeScript",
36+
"dry": false,
37+
"debug": false
3838
}
3939
// @filename: index.ts
4040
import settings from "./settings.json";

packages/tsconfig-reference/copy/en/options/verbatimModuleSyntax.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Basically, if you write something like
1010
import { Car } from "./car";
1111

1212
export function drive(car: Car) {
13-
// ...
13+
// ...
1414
}
1515
```
1616

@@ -19,7 +19,7 @@ Your output JavaScript might look something like this:
1919

2020
```js
2121
export function drive(car) {
22-
// ...
22+
// ...
2323
}
2424
```
2525

@@ -113,9 +113,9 @@ function bar() {}
113113
function baz() {}
114114

115115
export = {
116-
foo,
117-
bar,
118-
baz
116+
foo,
117+
bar,
118+
baz
119119
};
120120
```
121121

@@ -128,9 +128,9 @@ function bar() {}
128128
function baz() {}
129129

130130
module.exports = {
131-
foo,
132-
bar,
133-
baz
131+
foo,
132+
bar,
133+
baz
134134
};
135135
```
136136

0 commit comments

Comments
 (0)