Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into events-v2-8216
Browse files Browse the repository at this point in the history
  • Loading branch information
jamil314 committed Dec 19, 2024
2 parents 45427a8 + fdd142e commit d2f8f49
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
17 changes: 16 additions & 1 deletion packages/client/src/v2-events/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,22 @@ module.exports = {
'@typescript-eslint/require-await': 2,
'@typescript-eslint/return-await': 2,
'@typescript-eslint/switch-exhaustiveness-check': 2,
'func-style': ['error', 'declaration'],
'func-style': [
'error',
'declaration',
{
allowArrowFunctions: true
}
],
'no-restricted-syntax': [
'error',
{
selector:
':matches(Program > VariableDeclaration) > VariableDeclarator > ArrowFunctionExpression',
message: 'Top-level arrow functions are not allowed.'
}
],
'react/jsx-no-literals': 1,
'no-shadow': 1,
'no-undef-init': 2,
'no-return-assign': 2,
Expand Down
6 changes: 5 additions & 1 deletion packages/client/src/v2-events/features/debug/debug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import { v4 as uuid } from 'uuid'
import { Text } from '@opencrvs/components'
import { useOnlineStatus } from '@client/utils'
import { useEvents } from '@client/v2-events/features/events/useEvents/useEvents'

/* Debug file should be the only transient component which will not be present in near future. */
/* eslint-disable react/jsx-no-literals */

const Container = styled.div`
background: #fff;
position: fixed;
Expand All @@ -36,7 +40,7 @@ export function Debug() {
const queryClient = useQueryClient()
const createMutation = events.createEvent()

function createEvents() {
const createEvents = () => {
createMutation.mutate(
{
type: 'TENNIS_CLUB_MEMBERSHIP',
Expand Down

0 comments on commit d2f8f49

Please sign in to comment.