mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 20:37:00 -05:00
Add rules from eslint's recommended set that triggered good lints (#50422)
This commit is contained in:
@@ -940,7 +940,7 @@ namespace ts.server {
|
||||
// raw is now fixed and ready
|
||||
this.safelist = raw.typesMap;
|
||||
for (const key in raw.simpleMap) {
|
||||
if (raw.simpleMap.hasOwnProperty(key)) {
|
||||
if (hasProperty(raw.simpleMap, key)) {
|
||||
this.legacySafelist.set(key, raw.simpleMap[key].toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ namespace ts.server {
|
||||
interface ProjectNavigateToItems {
|
||||
project: Project;
|
||||
navigateToItems: readonly NavigateToItem[];
|
||||
};
|
||||
}
|
||||
|
||||
function createDocumentSpanSet(): Set<DocumentSpan> {
|
||||
return createSet(({textSpan}) => textSpan.start + 100003 * textSpan.length, documentSpansEqual);
|
||||
|
||||
Reference in New Issue
Block a user