Skip to content

Commit 5ce6a89

Browse files
committed
chore: fix lint errors
1 parent 5797162 commit 5ce6a89

3 files changed

Lines changed: 21 additions & 24 deletions

File tree

examples/auth.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import MongooseAdapter from '@adminjs/mongoose';
2-
import AdminJS from 'adminjs';
3-
import express from 'express';
4-
import mongoose from 'mongoose';
5-
import AdminJSExpress from '../src';
6-
import './mongoose/admin-model';
7-
8-
import './mongoose/article-model';
1+
import MongooseAdapter from "@adminjs/mongoose";
2+
import AdminJS from "adminjs";
3+
import express from "express";
4+
import mongoose from "mongoose";
5+
import AdminJSExpress from "../src";
6+
import "./mongoose/admin-model";
7+
8+
import "./mongoose/article-model";
99

1010
AdminJS.registerAdapter(MongooseAdapter);
1111

src/authentication/login.handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import AdminJS from 'adminjs';
2-
import { Router } from 'express';
1+
import AdminJS from "adminjs";
2+
import { Router } from "express";
33
import {
44
AuthenticationMaxRetriesOptions,
55
AuthenticationOptions,
6-
} from '../types';
6+
} from "../types";
77

88
const getLoginPath = (admin: AdminJS): string => {
99
const { loginPath, rootPath } = admin.options;

src/buildAuthenticatedRouter.ts

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
import AdminJS from 'adminjs';
2-
import express, { Router } from 'express';
3-
import formidableMiddleware from 'express-formidable';
4-
import session from 'express-session';
5-
import { withLogin } from './authentication/login.handler';
6-
import { withLogout } from './authentication/logout.handler';
7-
import { withProtectedRoutesHandler } from './authentication/protected-routes.handler';
8-
import { buildRouter } from './buildRouter';
9-
import { OldBodyParserUsedError } from './errors';
10-
import {
11-
AuthenticationOptions,
12-
FormidableOptions,
13-
} from './types';
1+
import AdminJS from "adminjs";
2+
import express, { Router } from "express";
3+
import formidableMiddleware from "express-formidable";
4+
import session from "express-session";
5+
import { withLogin } from "./authentication/login.handler";
6+
import { withLogout } from "./authentication/logout.handler";
7+
import { withProtectedRoutesHandler } from "./authentication/protected-routes.handler";
8+
import { buildRouter } from "./buildRouter";
9+
import { OldBodyParserUsedError } from "./errors";
10+
import { AuthenticationOptions, FormidableOptions } from "./types";
1411

1512
/**
1613
* @typedef {Function} Authenticate

0 commit comments

Comments
 (0)