Skip to content

Commit 4ad5ade

Browse files
committed
lint
1 parent 1635083 commit 4ad5ade

21 files changed

+7
-67
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public/
1515

1616
# Generated during test run
1717
/spec-lib
18+
/hookshot-int-*
1819

1920
book
2021
*.cer

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import chai from "eslint-plugin-chai-expect";
66

77
export default [
88
{
9-
ignores: ["lib/**/*", "contrib/**/*"],
9+
ignores: ["lib/**/*", "spec-lib/**/*", "contrib/**/*"],
1010
},
1111
...tseslint.config(
1212
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"start:matrixsender": "node --require source-map-support/register lib/App/MatrixSenderApp.js",
3333
"start:resetcrypto": "node --require source-map-support/register lib/App/ResetCryptoStore.js",
3434
"test": "mocha -r ts-node/register tests/init.ts 'tests/*.ts' 'tests/**/*.ts'",
35-
"test:e2e": "tsc --p tsconfig.spec.json && yarn node --experimental-vm-modules $(yarn bin jest)",
35+
"test:e2e": "tsc --p tsconfig.spec.json && cp ./lib/libRs.js ./lib/matrix-hookshot-rs.node ./spec-lib/src && yarn node --experimental-vm-modules $(yarn bin jest)",
3636
"test:cover": "nyc --reporter=lcov --reporter=text yarn test",
3737
"lint": "yarn run lint:js && yarn run lint:rs",
3838
"lint:js": "eslint",

src/AdminRoom.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import "reflect-metadata";
32
import { AdminAccountData, AdminRoomCommandHandler, Category } from "./AdminRoomCommandHandler";
43
import { botCommand, compileBotCommands, handleCommand, BotCommands, HelpFunction } from "./BotCommands";

src/AdminRoomCommandHandler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export enum Category {
1313

1414

1515
export interface AdminAccountData {
16-
1716
admin_user: string;
1817
github?: {
1918
notifications?: {

src/CommentProcessor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const log = new Logger("CommentProcessor");
1616
const mime = import('mime');
1717

1818
interface IMatrixCommentEvent extends MatrixMessageContent {
19-
2019
external_url: string;
2120
"uk.half-shot.matrix-hookshot.github.comment": {
2221
id: number;

src/Connections/GithubIssue.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export interface GitHubIssueConnectionState {
2020
repo: string;
2121
state: string;
2222
issues: string[];
23-
2423
comments_processed: number;
2524
}
2625

src/Connections/GithubProject.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { ConfigGrantChecker, GrantChecker } from "../grants/GrantCheck";
77
import { BridgeConfig } from "../config/Config";
88

99
export interface GitHubProjectConnectionState {
10-
1110
project_id: number;
1211
state: "open"|"closed";
1312
}

src/Connections/GithubUserSpace.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export class GitHubUserSpace extends BaseConnection implements IConnection {
7676
throw Error("Could not find repo");
7777
}
7878

79-
8079
let avatarState: {type: "m.room.avatar", state_key: "", content: { url: string}}|undefined;
8180
try {
8281
if (avatarUrl) {

src/Gitlab/Types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
export interface GitLabAuthor {
32
id: number;
43
name: string;

0 commit comments

Comments
 (0)