mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Remove no-unnecessary-qualifier from eslintrc (#51456)
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
"project": "./tsconfig-base.json"
|
||||
},
|
||||
"rules": {
|
||||
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
||||
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
||||
"no-restricted-globals": ["error",
|
||||
{ "name": "setTimeout" },
|
||||
|
||||
@@ -5,8 +5,6 @@ import {
|
||||
TodoComment, TodoCommentDescriptor, TypeAcquisition,
|
||||
} from "./_namespaces/ts";
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unnecessary-qualifier */
|
||||
|
||||
/**
|
||||
* Declaration module describing the TypeScript Server protocol
|
||||
*/
|
||||
|
||||
@@ -320,7 +320,7 @@ export class TestServerEventManager {
|
||||
configFileName: "tsconfig.json",
|
||||
projectType: "configured",
|
||||
languageServiceEnabled: true,
|
||||
version: ts.version, // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier
|
||||
version: ts.version,
|
||||
...partial,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ describe("unittests:: tsserver:: Session:: General functionality", () => {
|
||||
};
|
||||
|
||||
const expected: ts.server.protocol.StatusResponseBody = {
|
||||
version: ts.version, // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier
|
||||
version: ts.version,
|
||||
};
|
||||
assert.deepEqual(session.executeCommand(req).response, expected);
|
||||
});
|
||||
|
||||
@@ -350,8 +350,6 @@ export abstract class TypingsInstaller {
|
||||
this.sendResponse({
|
||||
kind: EventBeginInstallTypes,
|
||||
eventId: requestId,
|
||||
// qualified explicitly to prevent occasional shadowing
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-qualifier
|
||||
typingsInstallerVersion: version,
|
||||
projectName: req.projectName
|
||||
} as BeginInstallTypes);
|
||||
@@ -401,8 +399,6 @@ export abstract class TypingsInstaller {
|
||||
projectName: req.projectName,
|
||||
packagesToInstall: scopedTypings,
|
||||
installSuccess: ok,
|
||||
// qualified explicitly to prevent occasional shadowing
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-qualifier
|
||||
typingsInstallerVersion: version
|
||||
};
|
||||
this.sendResponse(response);
|
||||
|
||||
Reference in New Issue
Block a user