Skip to content

Commit

Permalink
Remove tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ignatov committed Aug 26, 2024
1 parent d8c4738 commit 54cf54a
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 50 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"nyc": "^15.1.0",
"ts-loader": "^9.3.1",
"ts-node": "^10.2.1",
"tslint": "^5.20.1",
"typedoc": "^0.22.13",
"typescript": "^4.6.0",
"webpack": "^5.73.0",
Expand Down
1 change: 0 additions & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Client from "./Client";
import { getPath, byCodes, byCode } from "./lib";
import { IncomingMessage } from "http";

// tslint:disable-next-line: no-namespace
declare namespace fhirclient {

interface RequestWithSession extends IncomingMessage {
Expand Down
12 changes: 3 additions & 9 deletions test/Client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ function crossPlatformTest(callback: (env: Adapter) => void) {
"works on the server" : new ServerEnv({ session: {} })
};

// tslint:disable-next-line:forin
for (const name in tests) {
it (name, () => callback(tests[name]));
}
Expand Down Expand Up @@ -1027,7 +1026,6 @@ describe("FHIR.client", () => {
"works on the server" : new ServerEnv()
};

// tslint:disable-next-line:forin
for (const name in tests) {
it (name, async () => {
const client = new Client(tests[name], { serverUrl: mockUrl });
Expand All @@ -1049,7 +1047,6 @@ describe("FHIR.client", () => {
"works on the server" : new ServerEnv()
};

// tslint:disable-next-line:forin
for (const name in tests) {
it (name, async () => {
const client = new Client(tests[name], { serverUrl: mockUrl });
Expand All @@ -1071,7 +1068,6 @@ describe("FHIR.client", () => {
"works on the server" : new ServerEnv()
};

// tslint:disable-next-line:forin
for (const name in tests) {
it (name, async () => {
const client = new Client(tests[name], { serverUrl: mockUrl });
Expand All @@ -1092,7 +1088,7 @@ describe("FHIR.client", () => {
"works in the browser": new BrowserEnv(),
"works on the server" : new ServerEnv()
};
// tslint:disable-next-line:forin

for (const name in tests) {
it (name, async () => {
const client = new Client(tests[name], { serverUrl: mockUrl });
Expand All @@ -1114,7 +1110,6 @@ describe("FHIR.client", () => {
"works on the server" : new ServerEnv()
};

// tslint:disable-next-line:forin
for (const name in tests) {
it (name, async () => {
const client = new Client(tests[name], { serverUrl: mockUrl });
Expand Down Expand Up @@ -2769,7 +2764,6 @@ describe("FHIR.client", () => {
"works on the server" : new ServerEnv()
};

// tslint:disable-next-line:forin
for (const name in tests) {
it (name, async () => {
const client = new Client(tests[name], { serverUrl: mockUrl });
Expand Down Expand Up @@ -2923,7 +2917,6 @@ describe("FHIR.client", () => {
"works on the server" : new ServerEnv()
};

// tslint:disable-next-line:forin
for (const name in tests) {
it (name, async () => {
const client = new Client(tests[name], { serverUrl: mockUrl });
Expand All @@ -2932,6 +2925,7 @@ describe("FHIR.client", () => {
url: "/Patient/patient-id",
includeResponse: true
});
// @ts-ignore
expect(result.body).to.include({ id: "patient-id" });
expect(result.response.status).to.equal(200);
});
Expand Down Expand Up @@ -3052,7 +3046,7 @@ describe("FHIR.client", () => {

expect(result.response.status).to.equal(200);
expect(result.response.headers.get("x-custom")).to.equal("test");
expect(result.body).to.equal([
expect(result.body as any).to.equal([
{
resourceType: "Bundle",
pageId: 1,
Expand Down
1 change: 0 additions & 1 deletion test/mocks/HttpResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ export default class HttpResponse
Object.assign(this.headers, headers);
}

// tslint:disable-next-line:no-empty
end(): void {}
}
1 change: 0 additions & 1 deletion test/mocks/Window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class History
}
}

// tslint:disable-next-line:max-classes-per-file
export default class Window extends EventEmitter
{
FHIR: any;
Expand Down
37 changes: 0 additions & 37 deletions tslint.json

This file was deleted.

0 comments on commit 54cf54a

Please sign in to comment.