diff --git a/lib/app.ts b/lib/app.ts index 87e832863..1ac7e0e25 100644 --- a/lib/app.ts +++ b/lib/app.ts @@ -1,33 +1,31 @@ -import express from 'express' -import ejs from 'ejs' -import passport from 'passport' -import methodOverride from 'method-override' -import cookieParser from 'cookie-parser' import compression from 'compression' -import session from 'express-session' +import flash from 'connect-flash' // eslint-disable-next-line @typescript-eslint/camelcase import connect_session_sequelize from 'connect-session-sequelize' -import fs from 'fs' -import path from 'path' -import morgan from 'morgan' -import passportSocketIo from 'passport.socketio' +import cookieParser from 'cookie-parser' +import ejs from 'ejs' +import express from 'express' +import session from 'express-session' import helmet from 'helmet' -import i18n from 'i18n' -import flash from 'connect-flash' - -import { Revision, sequelize } from './models' -import { config } from './config' -import { logger } from './logger' -import { errors } from './errors' -import { addNonceToLocals, computeDirectives } from './csp' -import { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter } from './web/' import http from 'http' import https from 'https' +import i18n from 'i18n' +import fs from 'fs' +import methodOverride from 'method-override' +import morgan from 'morgan' +import passport from 'passport' +import passportSocketIo from 'passport.socketio' +import path from 'path' import SocketIO from 'socket.io' import WebSocket from 'ws' -// others -import { realtime } from './realtime' +import { config } from './config' +import { addNonceToLocals, computeDirectives } from './csp' +import { errors } from './errors' +import { logger } from './logger' +import { Revision, sequelize } from './models' +import { realtime } from './realtime' +import { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter } from './web/' import { tooBusy, checkURI, redirectWithoutTrailingSlashes, codiMDVersion } from './web/middleware' const SequelizeStore = connect_session_sequelize(session.Store)