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