[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:
Vinh
2019-10-15 22:56:38 +00:00
committed by Wyatt Johnson
parent b0e0ba6633
commit 3bfcc509d2
569 changed files with 2592 additions and 1925 deletions
+3 -3
View File
@@ -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;