mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add rules from eslint's recommended set that triggered good lints (#50422)
This commit is contained in:
1 parent
a11c41621b
commit
16156b1baf
34 files changed
+54
-48
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user