Skip to content

Commit

Permalink
disable tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
breath103 committed Dec 19, 2023
1 parent ceecf27 commit 83c4f19
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 171 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
- uses: actions/checkout@v1
- name: Prepare
run: npm ci
- name: Lint
run: npm run lint
# - name: Lint
# run: npm run lint
- name: Test
run: npm test
- name: Publish
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ node_js:
- '8'
before_install: npm install npm@$(cat package.json | jq -r '.engines.npm') -g
script:
- npm run lint
- npm run test
deploy:
provider: npm
Expand Down
141 changes: 0 additions & 141 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"clean": "rm -Rf dst",
"prebuild": "npm run clean",
"build": "check-engine && tsc -d",
"lint": "tslint -p ./tsconfig.test.json",
"prepublishOnly": "npm run build",
"pretest": "npm run build -- -p ./tsconfig.test.json",
"ci:publish": "publish",
Expand Down Expand Up @@ -46,7 +45,6 @@
"check-engine": "1.11.0",
"mocha": "10.2.0",
"semantic-release": "21.0.7",
"tslint": "6.1.3",
"typescript": "^5.2.2"
},
"dependencies": {
Expand Down
3 changes: 0 additions & 3 deletions src/__test__/root-namespace_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ describe("RootNamespace", () => {
expect(decrypted.name).to.be.eq("Error");

expect(decrypted.stack[0]).to.be.eq("Error: TEST ERROR");
// tslint:disable
// Since Stack keep changes depends on CI env, check only the first line
// " at RoutingContext.<anonymous> (/Users/lea/Works/corgi/dst/__test__/root-namespace_spec.js:26:35)",
// " at Generator.next (<anonymous>)",
Expand All @@ -64,9 +63,7 @@ describe("RootNamespace", () => {
// " at /Users/lea/Works/corgi/node_modules/async-listener/glue.js:188:31",
// " at <anonymous>",
// " at process._tickCallback (internal/process/next_tick.js:188:7)",
// tslint:enable
expect(res.statusCode).to.be.eq(500);

});
});

Expand Down
3 changes: 1 addition & 2 deletions src/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type RouteHandler<
T extends { [P in keyof T]: ParameterDefinition<any> },
U extends { [P in keyof U]: TSchema }
> = (this: RoutingContext<T, U>) => Promise<LambdaProxy.Response>;
export type RouteMetadata = Map<Function, any>; // tslint:disable-line
export type RouteMetadata = Map<Function, any>;

// ---- Route
export class Route<
Expand Down Expand Up @@ -63,7 +63,6 @@ export class Route<
>(path: string, options: RouteSimplifiedOptions, params: T, handler: RouteHandler<T, U>) {
return this._factory(path, "HEAD", options, params, handler);
}
// tslint:enable:max-line-length

private static _factory<
T extends { [P in keyof T]: ParameterDefinition<any> },
Expand Down
2 changes: 0 additions & 2 deletions src/route_factories/presenter_route/presenter_route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export class PresenterRouteFactory {
}

// Simplified Constructors
// tslint:disable:max-line-length
public static GET<
Input,
Output,
Expand Down Expand Up @@ -109,5 +108,4 @@ export class PresenterRouteFactory {
>(path: string, options: RouteSimplifiedOptions, params: T, presenter: Presenter<Input, Output>, handler: PresenterRouteHandler<Input, T, U>) {
return this.create(path, "HEAD", options, params, presenter, handler);
}
// tslint:enable:max-line-length
}
1 change: 0 additions & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export class Router {
};
}

// tslint:disable-next-line:member-ordering
private readonly routeToPathRegexpCache = new Map<Route<any, any>, { regexp: RegExp, keys: PathKey[] }>();

public async resolve(
Expand Down
17 changes: 0 additions & 17 deletions tslint.json

This file was deleted.

0 comments on commit 83c4f19

Please sign in to comment.