Skip to content

Commit efe316c

Browse files
committed
Merge branch 'main' into marcaaron-requestEarlyCancellation
2 parents 4ef9528 + 474cc0a commit efe316c

1,587 files changed

Lines changed: 63092 additions & 27839 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.changed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
'deprecation/deprecation': 'error',
99
'rulesdir/no-default-id-values': 'error',
1010
'rulesdir/provide-canBeMissing-in-useOnyx': 'error',
11+
'rulesdir/no-unstable-hook-defaults': 'error',
1112
'no-restricted-syntax': [
1213
'error',
1314
{

.eslintrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ const restrictedImportPaths = [
100100
name: 'react-native-animatable',
101101
message: "Please use 'react-native-reanimated' instead.",
102102
},
103+
{
104+
name: 'react-native-onyx',
105+
importNames: ['useOnyx'],
106+
message: "Please use '@hooks/useOnyx' instead.",
107+
},
103108
];
104109

105110
const restrictedImportPatterns = [
@@ -214,6 +219,7 @@ module.exports = {
214219
'es/no-optional-chaining': 'off',
215220
'deprecation/deprecation': 'off',
216221
'arrow-body-style': 'off',
222+
'no-continue': 'off',
217223

218224
// Import specific rules
219225
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
@@ -225,6 +231,7 @@ module.exports = {
225231
'rulesdir/no-multiple-onyx-in-file': 'off',
226232
'rulesdir/prefer-underscore-method': 'off',
227233
'rulesdir/prefer-import-module-contents': 'off',
234+
'rulesdir/no-beta-handler': 'error',
228235

229236
// React and React Native specific rules
230237
'react-native-a11y/has-accessibility-hint': ['off'],
@@ -271,6 +278,14 @@ module.exports = {
271278
property: 'isHybridApp',
272279
message: 'Use CONFIG.IS_HYBRID_APP instead.',
273280
},
281+
// Prevent direct use of HybridAppModule.closeReactNativeApp().
282+
// Instead, use the `closeReactNativeApp` action from `@userActions/HybridApp`,
283+
// which correctly updates `hybridApp.closingReactNativeApp` when closing NewDot
284+
{
285+
object: 'HybridAppModule',
286+
property: 'closeReactNativeApp',
287+
message: 'Use `closeReactNativeApp` from `@userActions/HybridApp` instead.',
288+
},
274289
],
275290
'no-restricted-imports': [
276291
'error',

.github/.eslintrc.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ module.exports = {
77
'no-await-in-loop': 'off',
88
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
99
'no-continue': 'off',
10-
'no-restricted-imports': 'off',
10+
'no-restricted-imports': [
11+
'error',
12+
{
13+
patterns: [
14+
{
15+
group: ['@src/**'],
16+
message: 'Do not import files from src/ directory as they can break the GH Actions build script.',
17+
},
18+
],
19+
},
20+
],
1121
},
1222
};
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Patch Tracking
3+
about: Template for tracking patches applied to third-party libraries
4+
---
5+
6+
If you haven't already, check out our [contributing guidelines](https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md) and [patch guidelines](https://github.com/Expensify/App/blob/main/contributingGuides/PATCHES.md) for information on how to manage patches.
7+
___
8+
9+
## Patch Information
10+
11+
**Library Name:** <!-- e.g., react-native-pdf -->
12+
**Library Version:** <!-- e.g., 6.7.3 -->
13+
**Patch Number:** <!-- e.g., 001 -->
14+
**Patch Description:** <!-- e.g., update-podspec-to-support-new-arch -->
15+
**Full Patch Filename:** <!-- e.g., react-native-pdf+6.7.3+001+update-podspec-to-support-new-arch.patch -->
16+
17+
## Patch Details
18+
19+
### Reason for Patch
20+
<!-- Explain why this patch is necessary. What issue does it solve? -->
21+
22+
### Changes Made
23+
<!-- Briefly describe the changes made in the patch -->
24+
25+
### Upstream Status
26+
**Upstream PR/Issue:** <!-- Link to the PR or issue in the upstream repository, if one exists -->
27+
28+
## Related Information
29+
30+
**PR Introducing Patch:** <!-- Link to the PR that introduced this patch -->
31+
32+
## Additional Notes
33+
<!-- Any other relevant information about this patch -->
34+
35+
## Checklist
36+
- [ ] Patch file is correctly named and placed in the appropriate directory
37+
- [ ] Patch is documented in the corresponding `details.md` file
38+
- [ ] This issue is linked in the `details.md` file
39+
- [ ] Upstream PR/issue has been created (if applicable)

.github/actions/javascript/authorChecklist/index.js

Lines changed: 200 additions & 52 deletions
Large diffs are not rendered by default.

.github/actions/javascript/awaitStagingDeploys/index.js

Lines changed: 225 additions & 60 deletions
Large diffs are not rendered by default.

.github/actions/javascript/checkAndroidStatus/index.js

Lines changed: 187 additions & 39 deletions
Large diffs are not rendered by default.

.github/actions/javascript/checkDeployBlockers/checkDeployBlockers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import * as core from '@actions/core';
33
import CONST from '@github/libs/CONST';
44
import GithubUtils from '@github/libs/GithubUtils';
5-
import {isEmptyObject} from '@src/types/utils/EmptyObject';
5+
import {isEmptyObject} from '@github/libs/isEmptyObject';
66

77
const run = function (): Promise<void> {
88
const issueNumber = Number(core.getInput('ISSUE_NUMBER', {required: true}));

.github/actions/javascript/checkDeployBlockers/index.js

Lines changed: 189 additions & 41 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: 'Check Test Coverage'
2+
description: 'A simple action that takes a GitHub URL and prints it'
3+
inputs:
4+
GITHUB_URL:
5+
description: 'GitHub repository URL to check'
6+
required: true
7+
8+
runs:
9+
using: 'node20'
10+
main: './index.js'

0 commit comments

Comments
 (0)