Skip to content

Commit

Permalink
Amend import order according to ESLint rules introduced in v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Philzen committed Aug 8, 2022
1 parent 20a9e6c commit e9e9141
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { parseJWT } from '@redwoodjs/api'
import { AuthenticationError, ForbiddenError } from '@redwoodjs/graphql-server'

import { logger } from 'src/lib/logger'

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { AuthenticationError, ForbiddenError } from '@redwoodjs/graphql-server'
import { db } from './db'

import type { DbAuthSession } from '@redwoodjs/api'
import { AuthenticationError, ForbiddenError } from '@redwoodjs/graphql-server'

import { db } from './db'

/**
* The session object sent in as the first argument to getCurrentUser() will
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { AuthenticationError, ForbiddenError } from '@redwoodjs/graphql-server'

import { db } from './db'

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { db } from 'src/lib/db'
import { DbAuthHandler } from '@redwoodjs/api'

import type { APIGatewayProxyEvent, Context } from 'aws-lambda'

import { DbAuthHandler } from '@redwoodjs/api'
import type { DbAuthHandlerOptions } from '@redwoodjs/api'

import { db } from 'src/lib/db'

export const handler = async (
event: APIGatewayProxyEvent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { db } from 'src/lib/db'
import { DbAuthHandler } from '@redwoodjs/api'

import { db } from 'src/lib/db'

export const handler = async (event, context) => {
const forgotPasswordOptions = {
// handler() is invoked after verifying that a user was found with the given
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AuthenticationError } from '@redwoodjs/graphql-server'
import admin from 'firebase-admin'

import { AuthenticationError } from '@redwoodjs/graphql-server'

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const adminApp = admin.initializeApp({
projectId: process.env.FIREBASE_PROJECT_ID,
Expand Down

0 comments on commit e9e9141

Please sign in to comment.