Run eslint --fix

This commit is contained in:
Jerko Steiner 2019-11-01 11:18:50 -04:00
parent d560f7a725
commit 4b170b4e63
9 changed files with 15 additions and 21 deletions

View File

@ -2,3 +2,4 @@ packages/*/lib
packages/*/esm
build/
packages/*/src/migrations
node_modules/

View File

@ -1,5 +1,5 @@
module.exports = {
projects: [
"<rootDir>/packages/*/src",
'<rootDir>/packages/*/src',
],
}

View File

@ -1,4 +1,4 @@
import { CrumbLink } from "./CrumbLink";
import { CrumbLink } from './CrumbLink'
export interface CrumbsState {
links: CrumbLink[]

View File

@ -1,16 +1,9 @@
/* eslint @typescript-eslint/no-explicit-any: 0 */
import { createStore, SelectState, WaitMiddleware } from '@rondo.dev/redux'
import React from 'react'
import ReactDOM from 'react-dom'
import {createStore, SelectState, WaitMiddleware} from '@rondo.dev/redux'
import {Provider} from 'react-redux'
import {
Action,
AnyAction,
DeepPartial,
Reducer,
ReducersMapObject,
combineReducers,
} from 'redux'
import { Provider } from 'react-redux'
import { Action, AnyAction, combineReducers, Reducer, ReducersMapObject } from 'redux'
interface RenderParams<State, LocalState> {
reducers: ReducersMapObject<State, any>

View File

@ -1,6 +1,6 @@
import { NewUser, UserProfile } from "../user";
import { ChangePasswordParams } from "./ChangePasswordParams";
import { Credentials } from "./Credentials";
import { NewUser, UserProfile } from '../user'
import { ChangePasswordParams } from './ChangePasswordParams'
import { Credentials } from './Credentials'
export interface AuthService {
createUser(credentials: NewUser): Promise<UserProfile>

View File

@ -1,5 +1,5 @@
import { Namespace } from "cls-hooked";
import { TransactionManager } from "./TransactionManager";
import { Namespace } from 'cls-hooked'
import { TransactionManager } from './TransactionManager'
export interface Database<
Connection,

View File

@ -35,7 +35,7 @@ export function createStore<State, A extends Action>(
params.reducer,
// stupid warning about how Partial<State> | undefined cannot be used as
// DeepPartial<State> | undefined
params.state as any, // eslint-disable-line
params.state as DeepPartial<State> | undefined,
applyMiddleware(...middleware),
)
}

View File

@ -1,5 +1,5 @@
import { readdirSync, lstatSync } from "fs"
import { join } from "path"
import { readdirSync, lstatSync } from 'fs'
import { join } from 'path'
export function getFolders(dir: string): string[] {
return readdirSync(dir)

View File

@ -1,5 +1,5 @@
import { AppServer } from './AppServer'
import { TypeORMDatabase } from '@rondo.dev/db-typeorm';
import { TypeORMDatabase } from '@rondo.dev/db-typeorm'
export interface Application {
readonly server: AppServer