Skip to content

Commit 2b90b88

Browse files
authored
Merge branch 'develop' into watermelon-db-update
2 parents a6168de + 99ed28d commit 2b90b88

673 files changed

Lines changed: 19287 additions & 10729 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ module.exports = {
1111
},
1212
'import/parsers': {
1313
'@typescript-eslint/parser': ['.ts', '.tsx']
14+
// plugins: ['@typescript-eslint'],
15+
// rules: {
16+
// '@typescript-eslint/consistent-type-imports': [
17+
// 'error',
18+
// {
19+
// prefer: 'type-imports', // enforce `import type`
20+
// disallowTypeAnnotations: true // disallow `import { type Foo }`
21+
// // fixStyle: 'inline-type-imports' // keeps type imports inline rather than grouped
22+
// }
23+
// ]
24+
// }
1425
}
1526
},
1627
parser: '@babel/eslint-parser',
@@ -219,6 +230,14 @@ module.exports = {
219230
ignoreRestSiblings: true
220231
}
221232
],
233+
'@typescript-eslint/consistent-type-imports': [
234+
'error',
235+
{
236+
prefer: 'type-imports',
237+
disallowTypeAnnotations: true,
238+
fixStyle: 'inline-type-imports'
239+
}
240+
],
222241
'new-cap': 'off',
223242
'lines-between-class-members': 'off',
224243
'react-hooks/rules-of-hooks': 'error',

.github/workflows/prettier.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ jobs:
2626
- name: Run Prettier
2727
run: yarn prettier --write .
2828

29+
- name: Run ESLint
30+
run: npx eslint . --fix
31+
2932
- name: Check for changes
30-
id: check_changes
33+
id: changes
3134
run: |
3235
if git diff --quiet; then
3336
echo "No code format changes detected"
@@ -37,11 +40,11 @@ jobs:
3740
echo "changes=true" >> $GITHUB_OUTPUT
3841
fi
3942
40-
- name: Commit and push changes
41-
if: steps.check_changes.outputs.changes == 'true'
43+
- name: Commit and push eslint changes
44+
if: steps.changes.outputs.changes == 'true'
4245
run: |
4346
git config user.name "${{ github.actor }}"
4447
git config user.email "${{ github.actor }}@users.noreply.github.com"
4548
git add .
46-
git commit -m "chore: format code with Prettier [skip ci]"
49+
git commit -m "chore: format code and fix lint issues [skip ci]"
4750
git push origin ${{ github.ref_name }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
appId: chat.rocket.reactnative
2+
name: Open room with last message as thread with more than 50 messages
3+
onFlowStart:
4+
- runFlow: '../../helpers/setup.yaml'
5+
tags:
6+
- test-12
7+
8+
---
9+
- runFlow:
10+
file: '../../helpers/login-with-deeplink.yaml'
11+
env:
12+
USERNAME: ${output.account.adminUser}
13+
PASSWORD: ${output.account.adminPassword}
14+
15+
# should open a room where the last message is a thread containing more than 50 messages.
16+
- runFlow:
17+
file: '../../helpers/navigate-to-room.yaml'
18+
env:
19+
ROOM: 'maestro_test_load_threads'
20+
- extendedWaitUntil:
21+
visible:
22+
text: '.*message 50.*'
23+
timeout: 60000
24+
- extendedWaitUntil:
25+
visible:
26+
id: 'thread-count-55'
27+
timeout: 60000
28+
- scrollUntilVisible:
29+
element:
30+
id: 'message-content-message 1'
31+
direction: UP
32+
timeout: 60000

app/AppContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NavigationContainer } from '@react-navigation/native';
33
import { createNativeStackNavigator } from '@react-navigation/native-stack';
44
import { connect } from 'react-redux';
55

6-
import { SetUsernameStackParamList, StackParamList } from './definitions/navigationTypes';
6+
import type { SetUsernameStackParamList, StackParamList } from './definitions/navigationTypes';
77
import Navigation from './lib/navigation/appNavigation';
88
import { defaultHeader, getActiveRouteName, navigationTheme } from './lib/methods/helpers/navigation';
99
import { RootEnum } from './definitions';

app/actions/activeUsers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Action } from 'redux';
1+
import { type Action } from 'redux';
22

3-
import { IActiveUsers } from '../reducers/activeUsers';
3+
import { type IActiveUsers } from '../reducers/activeUsers';
44
import { ACTIVE_USERS } from './actionsTypes';
55

66
interface ISetActiveUsers extends Action {

app/actions/app.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Action } from 'redux';
2-
import { NetInfoStateType } from '@react-native-community/netinfo';
1+
import { type Action } from 'redux';
2+
import { type NetInfoStateType } from '@react-native-community/netinfo';
33

4-
import { RootEnum } from '../definitions';
4+
import { type RootEnum } from '../definitions';
55
import { APP } from './actionsTypes';
66

77
interface IAppStart extends Action {

app/actions/connect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Action } from 'redux';
1+
import { type Action } from 'redux';
22

33
import * as types from './actionsTypes';
44

app/actions/createChannel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Action } from 'redux';
1+
import { type Action } from 'redux';
22

3-
import { TCreateChannelResult } from '../reducers/createChannel';
3+
import { type TCreateChannelResult } from '../reducers/createChannel';
44
import { CREATE_CHANNEL } from './actionsTypes';
55

66
interface ICreateChannelRequest extends Action {

app/actions/createDiscussion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Action } from 'redux';
1+
import { type Action } from 'redux';
22

33
import { CREATE_DISCUSSION } from './actionsTypes';
44

app/actions/customEmojis.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Action } from 'redux';
1+
import { type Action } from 'redux';
22

33
import { SET_CUSTOM_EMOJIS } from './actionsTypes';
4-
import { ICustomEmojis } from '../definitions';
4+
import { type ICustomEmojis } from '../definitions';
55

66
export interface ISetCustomEmojis extends Action {
77
emojis: ICustomEmojis;

0 commit comments

Comments
 (0)