mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 06:00:07 +03:00
Fix lint
This commit is contained in:
parent
61cf775d19
commit
a3138b1ce7
|
@ -4,6 +4,7 @@ import knex from 'knex';
|
|||
import type { Knex } from 'knex';
|
||||
import { AGServer } from 'socketcluster-server';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
type KnexFunction = <TRecord extends {} = any, TResult = unknown[]>(
|
||||
config: Knex.Config | string
|
||||
) => Knex<TRecord, TResult>;
|
||||
|
|
|
@ -31,7 +31,7 @@ export interface Options {
|
|||
export default function getOptions(argv: { [arg: string]: any }): Options {
|
||||
let dbOptions = argv.dbOptions;
|
||||
if (typeof dbOptions === 'string') {
|
||||
dbOptions = JSON.parse(fs.readFileSync(argv.dbOptions, 'utf8'));
|
||||
dbOptions = JSON.parse(fs.readFileSync(dbOptions, 'utf8'));
|
||||
} else if (typeof dbOptions === 'undefined') {
|
||||
dbOptions = JSON.parse(
|
||||
fs.readFileSync(
|
||||
|
|
Loading…
Reference in New Issue
Block a user