mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
This changes unreachable code from a warning presented in the editor to an error. Existing issues mostly revolved around switching on enums. These were fixed by converting the switches to use a default case, leaving the behavior unchanged in case of new values (e.g. from separately-compiled extensions) creeping in. Other cases had to do with the assert.fail() function, which throws and so shouldn't have anything following it. Co-authored-by: Maksym Taran <maksym.taran@gmail.com>
27 lines
456 B
JSON
27 lines
456 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "amd",
|
|
"moduleResolution": "node",
|
|
"experimentalDecorators": true,
|
|
"noImplicitReturns": true,
|
|
"noUnusedLocals": true,
|
|
"allowUnreachableCode": false,
|
|
"strict": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"vs/*": [
|
|
"./vs/*"
|
|
]
|
|
},
|
|
"lib": [
|
|
"ES2015",
|
|
"ES2017.String",
|
|
"ES2018.Promise",
|
|
"DOM",
|
|
"DOM.Iterable",
|
|
"WebWorker.ImportScripts"
|
|
]
|
|
}
|
|
}
|