diff --git a/.eslintignore b/.eslintignore index b4f437d..8f2c1a5 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ packages/*/lib packages/*/esm build/ packages/*/src/migrations +node_modules/ diff --git a/jest.config.js b/jest.config.js index aff6eda..ef3b546 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,5 @@ module.exports = { projects: [ - "/packages/*/src", + '/packages/*/src', ], } diff --git a/packages/client/src/crumbs/CrumbsState.ts b/packages/client/src/crumbs/CrumbsState.ts index f2d86ab..703eaa5 100644 --- a/packages/client/src/crumbs/CrumbsState.ts +++ b/packages/client/src/crumbs/CrumbsState.ts @@ -1,4 +1,4 @@ -import { CrumbLink } from "./CrumbLink"; +import { CrumbLink } from './CrumbLink' export interface CrumbsState { links: CrumbLink[] diff --git a/packages/client/src/test-utils/TestUtils.tsx b/packages/client/src/test-utils/TestUtils.tsx index 5d579c1..fa7ddd7 100644 --- a/packages/client/src/test-utils/TestUtils.tsx +++ b/packages/client/src/test-utils/TestUtils.tsx @@ -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 { reducers: ReducersMapObject diff --git a/packages/common/src/auth/AuthService.ts b/packages/common/src/auth/AuthService.ts index 9d9894c..242fcbc 100644 --- a/packages/common/src/auth/AuthService.ts +++ b/packages/common/src/auth/AuthService.ts @@ -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 diff --git a/packages/db/src/Database.ts b/packages/db/src/Database.ts index 1e987f1..1b48a91 100644 --- a/packages/db/src/Database.ts +++ b/packages/db/src/Database.ts @@ -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, diff --git a/packages/redux/src/store/createStore.ts b/packages/redux/src/store/createStore.ts index 4143271..ffcc1a8 100644 --- a/packages/redux/src/store/createStore.ts +++ b/packages/redux/src/store/createStore.ts @@ -35,7 +35,7 @@ export function createStore( params.reducer, // stupid warning about how Partial | undefined cannot be used as // DeepPartial | undefined - params.state as any, // eslint-disable-line + params.state as DeepPartial | undefined, applyMiddleware(...middleware), ) } diff --git a/packages/scripts/src/getFolders.ts b/packages/scripts/src/getFolders.ts index 54a24c9..8601e61 100644 --- a/packages/scripts/src/getFolders.ts +++ b/packages/scripts/src/getFolders.ts @@ -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) diff --git a/packages/server/src/application/Application.ts b/packages/server/src/application/Application.ts index 5808dd4..3c678eb 100644 --- a/packages/server/src/application/Application.ts +++ b/packages/server/src/application/Application.ts @@ -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