You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates the tsconfig extends option documentation to reflect that it can accept an array of strings (added in PR #50403). Includes explanation of left-to-right application order and adds example showing array usage.
Fixes #62915
Copy file name to clipboardExpand all lines: packages/tsconfig-reference/copy/en/options/extends.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,11 @@ display: "Extends"
3
3
oneline: "Specify one or more path or node module references to base configuration files from which settings are inherited."
4
4
---
5
5
6
-
The value of `extends` is a string which contains a path to another configuration file to inherit from.
6
+
The value of `extends` is a string or array of strings which contains a path to another configuration file to inherit from.
7
7
The path may use Node.js style resolution.
8
8
9
+
When using an array, the configurations are applied from left to right, with later entries overriding earlier ones. This allows you to compose multiple base configurations together.
10
+
9
11
The configuration from the base file are loaded first, then overridden by those in the inheriting config file. All relative paths found in the configuration file will be resolved relative to the configuration file they originated in.
10
12
11
13
It's worth noting that [`files`](#files), [`include`](#include), and [`exclude`](#exclude) from the inheriting config file _overwrite_ those from the
@@ -46,4 +48,17 @@ Currently, the only top-level property that is excluded from inheritance is [`re
Properties with relative paths found in the configuration file, which aren't excluded from inheritance, will be resolved relative to the configuration file they originated in.
63
+
49
64
Properties with relative paths found in the configuration file, which aren't excluded from inheritance, will be resolved relative to the configuration file they originated in.
0 commit comments