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

View File

@@ -185,7 +185,7 @@ function convertDocumentToMarkdown(doc: Word.Document): string {
function setProperties(target: any, properties: any) {
for (const name in properties) {
if (properties.hasOwnProperty(name)) {
if (Object.prototype.hasOwnProperty.call(properties, name)) {
const value = properties[name];
if (typeof value === "object") {
setProperties(target[name], value);