Skip to content

Commit 30113bd

Browse files
chore: accept no console for error
1 parent 86ef87e commit 30113bd

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ module.exports = {
7979
},
8080
],
8181
'object-shorthand': 'error',
82-
'arrow-body-style': ["error", "as-needed"]
82+
'arrow-body-style': ["error", "as-needed"],
83+
'no-console': ['error', {allow: ['error']}]
8384
},
8485
overrides: [
8586
// Configuration for translations files (i18next)

env.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ if (shouldValidateEnv) {
219219
);
220220
}
221221

222+
console.error(...messages);
222223
throw new Error(
223224
'Invalid environment variables, Check terminal for more details '
224225
);

src/api/common/api-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
33
import { type ReactNode } from 'react';
44
export const queryClient = new QueryClient();
55

6-
export function APIProvider({ children }: { children: ReactNode }) {
6+
export function APIProvider({ children }: Readonly<{ children: ReactNode }>) {
77
useReactQueryDevTools(queryClient);
88
return (
99
// Provide the client to your App

src/app/login.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default function Login() {
1010
const signIn = useAuth.use.signIn();
1111

1212
const onSubmit: LoginFormProps['onSubmit'] = (data) => {
13+
// eslint-disable-next-line no-console
1314
console.log(data);
1415
signIn({ access: 'access-token', refresh: 'refresh-token' });
1516
router.push('/');

0 commit comments

Comments
 (0)