mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
[CORL-678] Transition to eslint (#2634)
* chore: setup eslint * chore: tslint checks with types & check for import order * chore: complete eslint transition * fix: tests * fix: linting after rebase, faster lint for lint-staged * chore: remove line * fix: lint rules * feat: add a11y linter and fix errors * fix: tests
This commit is contained in:
@@ -376,7 +376,7 @@ export async function retrieveManyComments(
|
||||
tenantID: string,
|
||||
ids: string[]
|
||||
) {
|
||||
const cursor = await collection(mongo).find({
|
||||
const cursor = collection(mongo).find({
|
||||
id: {
|
||||
$in: ids,
|
||||
},
|
||||
@@ -941,7 +941,7 @@ export async function retrieveStoryCommentTagCounts(
|
||||
const startTime = performanceNow();
|
||||
|
||||
// Load the counts from the database for this particular tag query.
|
||||
const cursor = await collection<{
|
||||
const cursor = collection<{
|
||||
_id: { tag: GQLTAG; storyID: string };
|
||||
total: number;
|
||||
}>(mongo).aggregate([
|
||||
@@ -994,7 +994,7 @@ export async function retrieveManyRecentStatusCounts(
|
||||
authorIDs: string[]
|
||||
) {
|
||||
// Get all the statuses for the given date stamp.
|
||||
const cursor = await collection<{
|
||||
const cursor = collection<{
|
||||
_id: {
|
||||
status: GQLCOMMENT_STATUS;
|
||||
authorID: string;
|
||||
|
||||
Reference in New Issue
Block a user