mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
@typescript-eslint/no-unnecessary-qualifier
This commit is contained in:
parent
59310d5880
commit
a18aeee1eb
@ -37,7 +37,7 @@
|
||||
"@typescript-eslint/no-parameter-properties": "off",
|
||||
"@typescript-eslint/no-this-alias": "error",
|
||||
"@typescript-eslint/no-triple-slash-reference": "off",
|
||||
"@typescript-eslint/no-unnecessary-qualifier": "off",
|
||||
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
||||
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
||||
"@typescript-eslint/no-use-before-define": "off",
|
||||
"@typescript-eslint/no-var-requires": "off",
|
||||
|
||||
@ -4977,7 +4977,8 @@ namespace ts {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
// tslint:disable-next-line no-unnecessary-qualifier (making clear this is a global mutation!)
|
||||
// making clear this is a global mutation!
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-qualifier
|
||||
ts.localizedDiagnosticMessages = JSON.parse(fileContents!);
|
||||
}
|
||||
catch {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// tslint:disable no-unnecessary-qualifier
|
||||
/* eslint-disable @typescript-eslint/no-unnecessary-qualifier */
|
||||
|
||||
/**
|
||||
* Declaration module describing the TypeScript Server protocol
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
namespace ts {
|
||||
ts.disableIncrementalParsing = false; // tslint:disable-line no-unnecessary-qualifier (make clear this is a global mutation!)
|
||||
// make clear this is a global mutation!
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-qualifier
|
||||
ts.disableIncrementalParsing = false;
|
||||
|
||||
function withChange(text: IScriptSnapshot, start: number, length: number, newText: string): { text: IScriptSnapshot; textChangeRange: TextChangeRange; } {
|
||||
const contents = getSnapshotText(text);
|
||||
|
||||
@ -117,7 +117,7 @@ namespace ts.server {
|
||||
terminal: false,
|
||||
});
|
||||
|
||||
class Logger implements server.Logger { // tslint:disable-line no-unnecessary-qualifier
|
||||
class Logger implements server.Logger { // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier
|
||||
private fd = -1;
|
||||
private seq = 0;
|
||||
private inGroup = false;
|
||||
|
||||
@ -328,7 +328,9 @@ namespace ts.server.typingsInstaller {
|
||||
this.sendResponse(<BeginInstallTypes>{
|
||||
kind: EventBeginInstallTypes,
|
||||
eventId: requestId,
|
||||
typingsInstallerVersion: ts.version, // tslint:disable-line no-unnecessary-qualifier (qualified explicitly to prevent occasional shadowing)
|
||||
// qualified explicitly to prevent occasional shadowing
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-qualifier
|
||||
typingsInstallerVersion: ts.version,
|
||||
projectName: req.projectName
|
||||
});
|
||||
|
||||
@ -377,7 +379,9 @@ namespace ts.server.typingsInstaller {
|
||||
projectName: req.projectName,
|
||||
packagesToInstall: scopedTypings,
|
||||
installSuccess: ok,
|
||||
typingsInstallerVersion: ts.version // tslint:disable-line no-unnecessary-qualifier (qualified explicitly to prevent occasional shadowing)
|
||||
// qualified explicitly to prevent occasional shadowing
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-qualifier
|
||||
typingsInstallerVersion: ts.version
|
||||
};
|
||||
this.sendResponse(response);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user