Skip to content

Commit

Permalink
updates(eslint): enable dot-notations rule (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk authored Nov 28, 2023
1 parent 4252b89 commit 56cf61d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"@typescript-eslint/consistent-indexed-object-style": 0,
"@typescript-eslint/consistent-type-assertions": 0,
"@typescript-eslint/consistent-type-definitions": 0,
"@typescript-eslint/dot-notation": 0,
"@typescript-eslint/no-base-to-string": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-inferrable-types": 0,
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
- Document Hover Effect
- Tech User Details
- Fix crash issue
- ESLINT
- Enable dot-notation rule
- User management
- Updated app access management flow
- Overlays
Expand Down
2 changes: 1 addition & 1 deletion src/components/overlays/AddBPN/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function AddBPN({ id }: { id: string }) {
}

const onDeleteBpnHandler = (deleteBpnId: string) => {
const params = { companyUserId: stateSelectorInfo['id'], bpn: deleteBpnId }
const params = { companyUserId: stateSelectorInfo.id, bpn: deleteBpnId }
dispatch(deleteUserBpn(params))
}

Expand Down
7 changes: 5 additions & 2 deletions src/features/apps/marketplaceDeprecated/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ import {
} from './types'
import { appToCard } from '../mapper'

enum Status {
ACTIVE = 'ACTIVE',
}

export const slice = createSlice({
name,
initialState,
Expand Down Expand Up @@ -114,8 +118,7 @@ export const subscribedAppsSelector = (state: RootState) =>
return state.apps.marketplace.subscribedApps.find(
(app: SubscribedApps) => {
return (
item['id'] === app['appId'] &&
app['appSubscriptionStatus'] === 'ACTIVE'
item.id === app.appId && app.appSubscriptionStatus === Status.ACTIVE
)
}
)
Expand Down

0 comments on commit 56cf61d

Please sign in to comment.