Skip to content

Commit 699e65d

Browse files
committed
Consistently highlight tsconfig code blocks
The `json tsconfig` language identifier is now used in all tsconfig snippets.
1 parent 3173c39 commit 699e65d

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ These conditions are added to whatever existing conditions a resolver will use b
88

99
For example, when this field is set in a `tsconfig.json` as so:
1010

11-
```jsonc
11+
```json tsconfig
1212
{
1313
"compilerOptions": {
1414
"target": "es2022",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TypeScript's type acquisition can infer what types should be added based on file
77

88
You can disable this via `disableFilenameBasedTypeAcquisition`.
99

10-
```json
10+
```json tsconfig
1111
{
1212
"typeAcquisition": {
1313
"disableFilenameBasedTypeAcquisition": true

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ oneline: "Disable the type acquisition for JavaScript projects."
55

66
Disables automatic type acquisition in JavaScript projects:
77

8-
```json
8+
```json tsconfig
99
{
1010
"typeAcquisition": {
1111
"enable": false

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ example
1616

1717
Using a `tsconfig.json` which has `explainFiles` set to true:
1818

19-
```json
19+
```json tsconfig
2020
{
2121
"compilerOptions": {
2222
"target": "es5",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ oneline: "Specify a list of glob patterns that match files to be included in com
66
Specifies an array of filenames or patterns to include in the program.
77
These filenames are resolved relative to the directory containing the `tsconfig.json` file.
88

9-
```json
9+
```json tsconfig
1010
{
1111
"include": ["src/**/*", "tests/**/*"]
1212
}

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This is called automatic type acquisition, and you can customize it using the `t
88

99
If you would like to disable or customize this feature, create a `jsconfig.json` in the root of your project:
1010

11-
```json
11+
```json tsconfig
1212
{
1313
"typeAcquisition": {
1414
"enable": false
@@ -18,7 +18,7 @@ If you would like to disable or customize this feature, create a `jsconfig.json`
1818

1919
If you have a specific module which should be included (but isn't in `node_modules`):
2020

21-
```json
21+
```json tsconfig
2222
{
2323
"typeAcquisition": {
2424
"include": ["jest"]
@@ -28,7 +28,7 @@ If you have a specific module which should be included (but isn't in `node_modul
2828

2929
If a module should not be automatically acquired, for example if the library is available in your `node_modules` but your team has agreed to not use it:
3030

31-
```json
31+
```json tsconfig
3232
{
3333
"typeAcquisition": {
3434
"exclude": ["jquery"]

packages/tsconfig-reference/copy/en/options/typeAcquisition/exclude.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ oneline: "Specify a list of modules which to exclude from type acquisition."
55

66
Offers a config for disabling the type-acquisition for a certain module in JavaScript projects. This can be useful for projects which include other libraries in testing infrastructure which aren't needed in the main application.
77

8-
```json
8+
```json tsconfig
99
{
1010
"typeAcquisition": {
1111
"exclude": ["jest", "mocha"]

packages/tsconfig-reference/copy/en/options/typeAcquisition/include.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ If you have a JavaScript project where TypeScript needs additional guidance to u
77

88
You can use `include` to specify which types should be used from DefinitelyTyped:
99

10-
```json
10+
```json tsconfig
1111
{
1212
"typeAcquisition": {
1313
"include": ["jquery"]

packages/tsconfig-reference/copy/en/sections/buildOptions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Type Acquisition is only important for JavaScript projects. In TypeScript projec
44

55
You may not want this, in which case you can turn off type acquisition by having this `jsconfig.json` in the root of your project:
66

7-
```json
7+
```json tsconfig
88
{
99
"typeAcquisition": {
1010
"enable": false
@@ -14,7 +14,7 @@ You may not want this, in which case you can turn off type acquisition by having
1414

1515
Common uses for this section of a `jsconfig.json` is to tell TypeScript to download additional definitions for your tooling experience:
1616

17-
```json
17+
```json tsconfig
1818
{
1919
"typeAcquisition": {
2020
"include": ["jquery"]

0 commit comments

Comments
 (0)