Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 24eddaa

Browse files
committed
Document ignoreDiagnostics config
Close #148.
1 parent 585e0ee commit 24eddaa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ Array of paths to .d.ts files that must be included in program. Useful with `rew
125125

126126
Use this setting to disable type checking.
127127

128+
### ignoreDiagnostics *(number[]) (default=[])*
129+
130+
You can squelch certain TypeScript errors by specifying an array of [diagnostic codes](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/diagnosticMessages.json) to ignore.
131+
For example, you can transpile [stage 1 properties](https://github.com/jeffmo/es-class-fields-and-static-properties) from `*.js` using `"ignoreDiagnostics": [8014]`.
132+
128133
### forkChecker *(boolean) (default=false)*
129134

130135
Do type checking in a separate process, so webpack doesn't need to wait. **Significantly** improves development workflow with tools like [react-hot-loader](https://github.com/gaearon/react-hot-loader).
@@ -169,7 +174,7 @@ Directory when cache is stored.
169174

170175
Invoke glob resolver using 'filesGlob' and 'exclude' sections of `tsconfig`.
171176

172-
### skipDeclarationFilesCheck *(string) (default=fase)*
177+
### skipDeclarationFilesCheck *(string) (default=false)*
173178

174179
Skip declaration files typechecking. Use this only if you understand consequences.
175180

0 commit comments

Comments
 (0)