Skip to content

[Monorepo] Setup linters#3503

Merged
m-bert merged 68 commits into@mbert/monorepofrom
@mbert/monorepo-unify-eslint-configs
May 9, 2025
Merged

[Monorepo] Setup linters#3503
m-bert merged 68 commits into@mbert/monorepofrom
@mbert/monorepo-unify-eslint-configs

Conversation

@m-bert
Copy link
Copy Markdown
Collaborator

@m-bert m-bert commented Apr 30, 2025

Description

This PR sets up eslint, prettier and tsc so that we can finally run lint checks in monorepo.

Each workspace has ts-check and lint-js scripts which run in given workspace. Running those scripts in root results in running them in each workspace.

Note

Running those scripts from root does not trigger any checks in ExpoExample and MacOSExample, as they only export app from CommonApp

Test plan

Run yarn ts-check and yarn lint-js from root.

@m-bert m-bert mentioned this pull request Apr 30, 2025
23 tasks
@m-bert m-bert marked this pull request as ready for review April 30, 2025 12:41
Comment thread apps/BasicExample/package.json Outdated
useEffect(() => {
useEffect(() => {
if (ref) {
ref.current = scrollRef.current;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this ref is being cleaned up at all, but it's hard to judge how much it matters in the internal test app.

Comment thread apps/CommonApp/src/new_api/camera/AnimatedCameraView.tsx Outdated
Comment thread apps/CommonApp/src/release_tests/mouseButtons/index.tsx Outdated
Comment thread apps/CommonApp/src/release_tests/rectButton/index.tsx
Comment thread package.json
Comment thread apps/BasicExample/package.json Outdated
Comment thread package.json
Comment thread packages/react-native-gesture-handler/package.json Outdated
Comment thread packages/react-native-gesture-handler/android/spotless.gradle
Base automatically changed from @mbert/monorepo-fix-CI-paths to @mbert/monorepo May 8, 2025 12:14
@m-bert m-bert merged commit a37d32d into @mbert/monorepo May 9, 2025
10 checks passed
@m-bert m-bert deleted the @mbert/monorepo-unify-eslint-configs branch May 9, 2025 08:10
m-bert added a commit that referenced this pull request May 23, 2025
## Description

This is base PR that migrates our repository into monorepo structure. It creates following structure:

- `/apps` - here we will put our example apps.
- `/packages` - main directory for Gesture Handler package, along with documentation.
- `/scripts` - scripts that are used by _**GestureHandler**_ (for example formatting scripts)

## Steps

<details>
<summary>Here is the list of PRs that fix issues caused by changing structure of the repository:</summary>

1. #3487
2. #3490
3. #3494
4. #3495
5. #3496
6. #3497
7. #3503
8. #3506
9. #3507
10. #3510
11. #3515
12. #3518
13. #3519
14. #3524
15. #3525
16. #3526
18. #3528

</details>

Note that most of them depends on previous ones, so **_they had to be merged in given order_** (at least up to no. 9).

## Test plan

<details>
<summary>Following subjects were tested in order to make sure that everything works after migration:</summary>

### Example apps

- [x] basic-example
  - [x] Android
  - [x] iOS
- [x] expo-example (fabric)
  - [x] Android
  - [x] iOS
  - [x] web (in that case architecture doesn't matter)
- [x] expo-example (paper)
  - [x] Android
  - [x] iOS
- [x] macos-example

### Scripts

- [x] check-android-dirs
- [x] check-rn-versions
- [x] format-android
- [x] format-apple
- [x] codegen-check-consistency
- [x] codegen-sync-archs
- [x] clangd

### Linters

- [x] prettier
- [x] eslint
- [x] lint-staged

### docs

- [x] check documentation

### Build from generated package

- [x] New app builds correctly

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants