Add rules from eslint's recommended set that triggered good lints (#50422)

This commit is contained in:
Jake Bailey
2022-09-19 16:20:55 -07:00
committed by GitHub
parent a11c41621b
commit 16156b1baf
34 changed files with 54 additions and 48 deletions
+1 -1
View File
@@ -3709,7 +3709,7 @@ namespace ts {
export function convertCompilerOptionsForTelemetry(opts: CompilerOptions): CompilerOptions {
const out: CompilerOptions = {};
for (const key in opts) {
if (opts.hasOwnProperty(key)) {
if (hasProperty(opts, key)) {
const type = getOptionFromName(key);
if (type !== undefined) { // Ignore unknown options
out[key] = getOptionValueWithEmptyStrings(opts[key], type);