Skip to content

Commit

Permalink
extension: tight up TypeScript configuration
Browse files Browse the repository at this point in the history
We want to detect unused variables and imports. Enforce that.

Signed-off-by: Paul Jolly <[email protected]>
Change-Id: Id957bc54899d2dbe30fc0e60b8cd78fb1328f95b
Reviewed-on: https://review.gerrithub.io/c/cue-lang/vscode-cue/+/1204932
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
  • Loading branch information
myitcv committed Nov 29, 2024
1 parent 6443cbd commit ffd124d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions extension/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
],
"sourceMap": true,
"rootDir": "src",
"strict": true /* enable all strict type-checking options */
/* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
"strict": true,
"noUnusedLocals": true
}
}

0 comments on commit ffd124d

Please sign in to comment.