🚨 ignore eslint

This commit is contained in:
marocchino 2021-10-20 22:17:07 +09:00
parent 8291eeaa52
commit d381d4286f
No known key found for this signature in database
GPG key ID: DEFF05E6B5B0FF97
4 changed files with 13 additions and 7 deletions

2
dist/index.js generated vendored
View file

@ -70,7 +70,9 @@ function findPreviousComment(octokit, repo, number, header) {
}
}
`, Object.assign(Object.assign({}, repo), { after, number }));
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const viewer = data.viewer;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const repository = data.repository;
const target = (_c = (_b = (_a = repository.pullRequest) === null || _a === void 0 ? void 0 : _a.comments) === null || _b === void 0 ? void 0 : _b.nodes) === null || _c === void 0 ? void 0 : _c.find((node) => {
var _a, _b;

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

2
lib/comment.js generated
View file

@ -63,7 +63,9 @@ function findPreviousComment(octokit, repo, number, header) {
}
}
`, Object.assign(Object.assign({}, repo), { after, number }));
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const viewer = data.viewer;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const repository = data.repository;
const target = (_c = (_b = (_a = repository.pullRequest) === null || _a === void 0 ? void 0 : _a.comments) === null || _b === void 0 ? void 0 : _b.nodes) === null || _c === void 0 ? void 0 : _c.find((node) => {
var _a, _b;

View file

@ -45,7 +45,9 @@ export async function findPreviousComment(
`,
{...repo, after, number}
)
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const viewer = data.viewer as User
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const repository = data.repository as Repository
const target = repository.pullRequest?.comments?.nodes?.find(
(node: IssueComment | null | undefined) =>