Skip to content

Commit

Permalink
update ESLint rules for platform
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Nov 2, 2024
1 parent 4b7d912 commit a610bcb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
21 changes: 21 additions & 0 deletions apps/platform/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
extends: ['custom/next'],
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module'
},
rules: {
'import/no-extraneous-dependencies': 0,
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['warn'],
'@typescript-eslint/space-before-function-paren': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'space-before-function-paren': 'off',
'@typescript-eslint/member-delimiter-style': 'off'
}
}
11 changes: 0 additions & 11 deletions apps/platform/.eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions apps/platform/src/app/auth/otp/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ export default function AuthOTPPage(): React.JSX.Element {
const handleResendOtp = async (userEmail: string): Promise<void> => {
try {
setIsLoadingRefresh(true)
//TODO:Remove this once initialisation is fixed
// ControllerInstance.initialize('http://localhost:4200')

const { error, success } =
await ControllerInstance.getInstance().authController.resendOTP({
Expand Down
1 change: 1 addition & 0 deletions packages/api-client/src/controllers/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
import { APIClient } from '@api-client/core/client'
import { parseResponse } from '@api-client/core/response-parser'
import { ClientResponse } from '@api-client/types/index.types'

export default class AuthController {
private apiClient: APIClient

Expand Down

0 comments on commit a610bcb

Please sign in to comment.