Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com>
  • Loading branch information
koonpeng committed Aug 1, 2024
1 parent 1b068e9 commit a523699
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/rmf-auth/lib/components/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { Configuration, DefaultApi, Permission, User } from 'api-client';
import React from 'react';

import Authenticator from '../authenticator';

export interface UserProfile {
Expand Down
2 changes: 1 addition & 1 deletion packages/rmf-auth/lib/components/login-card.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Typography, styled } from '@mui/material';
import { Button, styled, Typography } from '@mui/material';
import React from 'react';

const prefix = 'login-card';
Expand Down
1 change: 1 addition & 0 deletions packages/rmf-auth/lib/components/login-page.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { render } from '@testing-library/react';
import React from 'react';

import { LoginPage } from './login-page';

it('smoke test', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/rmf-auth/lib/components/login-page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { styled } from '@mui/material';
import React from 'react';

import { LoginCard, LoginCardProps } from './login-card';

const prefix = 'login-page';
Expand Down
1 change: 1 addition & 0 deletions packages/rmf-auth/lib/components/login.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Meta, StoryFn } from '@storybook/react';

import { LoginCard as LoginCard_, LoginPage as LoginPage_ } from '.';
import { LoginCardProps } from './login-card';

Expand Down
2 changes: 1 addition & 1 deletion packages/rmf-auth/lib/components/private-route.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { render } from '@testing-library/react';
import { createMemoryHistory, MemoryHistory } from 'history';

import React from 'react';
import { Router } from 'react-router-dom';

import { PrivateRoute } from './private-route';

describe('PrivateRoute', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/rmf-auth/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './authenticator';
export * from './components';
export * from './keycloak';
export * from './stub';
export * from './components';
1 change: 1 addition & 0 deletions packages/rmf-auth/lib/keycloak.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Debug from 'debug';
import EventEmitter from 'eventemitter3';
import Keycloak, { KeycloakInstance } from 'keycloak-js';

import { Authenticator, AuthenticatorEventType } from './authenticator';

const debug = Debug('authenticator');
Expand Down
4 changes: 3 additions & 1 deletion packages/rmf-auth/lib/stub.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import EventEmitter from 'eventemitter3';

import { Authenticator, AuthenticatorEventType } from './authenticator';

export class StubAuthenticator
extends EventEmitter<AuthenticatorEventType>
implements Authenticator {
implements Authenticator
{
readonly user: string;

readonly token?: string;
Expand Down

0 comments on commit a523699

Please sign in to comment.