mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-23 08:32:59 +05:30
chore: fix linting errors
This commit is contained in:
parent
831ab42155
commit
cd8a5a8a8b
@ -41,5 +41,6 @@ export function getLocaleIconUrl(locale: string): string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
return require('./flags/unknown.svg').default;
|
return require('./flags/unknown.svg').default;
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ storiesOf('Components/Profile/MultiFactorAuth', module)
|
|||||||
))
|
))
|
||||||
.add('Enabled', () => (
|
.add('Enabled', () => (
|
||||||
<MultiFactorAuth
|
<MultiFactorAuth
|
||||||
isMfaEnabled={true}
|
isMfaEnabled
|
||||||
step={0}
|
step={0}
|
||||||
onSubmit={(form, sendData) => {
|
onSubmit={(form, sendData) => {
|
||||||
action('onSubmit')(form, sendData);
|
action('onSubmit')(form, sendData);
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||||
/**
|
/**
|
||||||
* Returns the content to be displayed on first render
|
* Returns the content to be displayed on first render
|
||||||
*/
|
*/
|
||||||
|
@ -23,8 +23,8 @@ import siteName from './siteName.intl';
|
|||||||
|
|
||||||
import PageNotFound from 'app/pages/404/PageNotFound';
|
import PageNotFound from 'app/pages/404/PageNotFound';
|
||||||
|
|
||||||
const ProfileController = React.lazy(() =>
|
const ProfileController = React.lazy(
|
||||||
import(/* webpackChunkName: "page-profile-all" */ 'app/pages/profile/ProfileController'),
|
() => import(/* webpackChunkName: "page-profile-all" */ 'app/pages/profile/ProfileController'),
|
||||||
);
|
);
|
||||||
const RulesPage = React.lazy(() => import(/* webpackChunkName: "page-rules" */ 'app/pages/rules/RulesPage'));
|
const RulesPage = React.lazy(() => import(/* webpackChunkName: "page-rules" */ 'app/pages/rules/RulesPage'));
|
||||||
const DevPage = React.lazy(() => import(/* webpackChunkName: "page-dev-applications" */ 'app/pages/dev/DevPage'));
|
const DevPage = React.lazy(() => import(/* webpackChunkName: "page-dev-applications" */ 'app/pages/dev/DevPage'));
|
||||||
|
@ -11,8 +11,8 @@ import ContextProvider from './ContextProvider';
|
|||||||
|
|
||||||
import type { History } from 'history';
|
import type { History } from 'history';
|
||||||
|
|
||||||
const SuccessOauthPage = React.lazy(() =>
|
const SuccessOauthPage = React.lazy(
|
||||||
import(/* webpackChunkName: "page-oauth-success" */ 'app/pages/auth/SuccessOauthPage'),
|
() => import(/* webpackChunkName: "page-oauth-success" */ 'app/pages/auth/SuccessOauthPage'),
|
||||||
);
|
);
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
@ -28,7 +28,12 @@ export default function storeFactory(preloadedState = {}): Store {
|
|||||||
|
|
||||||
// Hot reload reducers
|
// Hot reload reducers
|
||||||
if (module.hot && typeof module.hot.accept === 'function') {
|
if (module.hot && typeof module.hot.accept === 'function') {
|
||||||
module.hot.accept('app/reducers', () => store.replaceReducer(require('app/reducers').default));
|
module.hot.accept('app/reducers', () =>
|
||||||
|
store.replaceReducer(
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
|
require('app/reducers').default,
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return store;
|
return store;
|
||||||
|
@ -38,7 +38,11 @@ Promise.all([stat(`${__dirname}/../../yarn.lock`), stat(`${__dirname}/../../dll/
|
|||||||
return reject(err);
|
return reject(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
logResult(chalk.green('Dll was successfully build in %s ms'), stats.endTime! - stats.startTime!);
|
logResult(
|
||||||
|
chalk.green('Dll was successfully build in %s ms'),
|
||||||
|
// @ts-expect-error - something wrong with webpack types
|
||||||
|
stats.endTime - stats.startTime,
|
||||||
|
);
|
||||||
|
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user