Skip to content

Commit 223d6a2

Browse files
Ignore unused locals by default (#185)
1 parent 2dc5358 commit 223d6a2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

readme.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,12 @@ By default, `tsd` applies the following configuration:
218218
"dom.iterable"
219219
],
220220
"module": "commonjs",
221-
// The following option is set and is not overridable.
222-
// It is set to `nodenext` if `module` is `nodenext`, `node16` if `module` is `node16` or `node` otherwise.
223-
"moduleResolution": "node" | "node16" | "nodenext"
221+
"esModuleInterop": true,
222+
"noUnusedLocals": false,
223+
// The following options are set and are not overridable.
224+
// Set to `nodenext` if `module` is `nodenext`, `node16` if `module` is `node16` or `node` otherwise.
225+
"moduleResolution": "node" | "node16" | "nodenext",
226+
"skipLibCheck": false
224227
}
225228
```
226229

@@ -237,7 +240,7 @@ These options will be overridden if a `tsconfig.json` file is found in your proj
237240
}
238241
```
239242

240-
*Default options will apply if you don't override them explicitly.* You can't override the `moduleResolution` option.
243+
*Default options will apply if you don't override them explicitly. You can't override the `moduleResolution` or `skipLibCheck` options.*
241244

242245
### Via the CLI
243246

source/lib/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default (pkg: PackageJsonWithTsdConfig, cwd: string): Config => {
4444
module,
4545
target: ScriptTarget.ES2020,
4646
esModuleInterop: true,
47+
noUnusedLocals: false,
4748
...combinedCompilerOptions,
4849
moduleResolution: module === ModuleKind.NodeNext ?
4950
ModuleResolutionKind.NodeNext :

0 commit comments

Comments
 (0)