Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
fc8e50d
Move config files
m-bert Apr 11, 2025
1de55d5
Test
m-bert Apr 14, 2025
baca7e6
Test2
m-bert Apr 14, 2025
cedad03
Update package.json
m-bert Apr 14, 2025
d7c340a
Fix husky path
m-bert Apr 14, 2025
ea00daa
Fix one CI
m-bert Apr 14, 2025
2c176ce
Bring back old versions
m-bert Apr 14, 2025
a49ffca
update lockfile
m-bert Apr 14, 2025
4ec5f5f
Add working dir to circular dependency check
m-bert Apr 14, 2025
c66dd04
Add BasicExample app
m-bert Apr 18, 2025
47f671e
Add husky to root package.json
m-bert Apr 18, 2025
0b0c540
Merge branch '@mbert/monorepo-move-config-files' into @mbert/monorepo…
m-bert Apr 18, 2025
697ed7d
Remove unused variable
m-bert Apr 18, 2025
6b92cb5
It works :o
m-bert Apr 18, 2025
cf20fc5
Add web
m-bert Apr 22, 2025
646409b
Add basic MacOSExample
m-bert Apr 24, 2025
ab7afd4
Change tsconfig
m-bert Apr 24, 2025
89a7544
Remove android and ios dirs
m-bert Apr 24, 2025
a6711c8
Add basic examples
m-bert Apr 24, 2025
958de88
Add CommonApp
m-bert Apr 24, 2025
f905eab
Use CommonApp in ExpoExample
m-bert Apr 24, 2025
3fbed8b
Update package.json and yarn.lock
m-bert Apr 24, 2025
f6f6dd4
Add CommonApp to macos
m-bert Apr 24, 2025
ac136e8
Update yarn.lock
m-bert Apr 25, 2025
7da0eb6
Android build CI
m-bert Apr 25, 2025
852a242
Docs CI
m-bert Apr 25, 2025
77d865b
iOS build
m-bert Apr 25, 2025
f6426b6
Kotlin lint CI
m-bert Apr 25, 2025
558e380
macos CI
m-bert Apr 25, 2025
b399724
main CI
m-bert Apr 25, 2025
e787855
static-examples
m-bert Apr 25, 2025
feac1df
static root
m-bert Apr 25, 2025
69f8b28
Fix workspace script
m-bert Apr 29, 2025
d130de3
Update yarn.lock
m-bert Apr 30, 2025
9512329
Bump reanimated
m-bert Apr 30, 2025
63c41a9
Bump safe-area-context
m-bert Apr 30, 2025
ee61690
Merge @mbert/monorepo-add-expo-example
m-bert Apr 30, 2025
54f70ea
Bump reanimated
m-bert Apr 30, 2025
b78aa63
Merge branch '@mbert/monorepo-add-macos-example' into @mbert/monorepo…
m-bert Apr 30, 2025
d35fd12
update locks
m-bert Apr 30, 2025
705d634
Merge branch '@mbert/monorepo-add-common-app' into @mbert/monorepo-fi…
m-bert Apr 30, 2025
ade521b
Update eslint
m-bert Apr 30, 2025
83fb405
BasicExample
m-bert Apr 30, 2025
8e0e4ce
CommonApp
m-bert Apr 30, 2025
8c3aa12
Package
m-bert Apr 30, 2025
41cca92
Add eslint scripts
m-bert Apr 30, 2025
cb70d7a
Update typescript
m-bert Apr 30, 2025
16c2bad
Fix ts-checks
m-bert Apr 30, 2025
0ade444
Update workflows
m-bert Apr 30, 2025
352828c
Fix faulty script in CIs
m-bert Apr 30, 2025
9b845bd
Disable promise rule
m-bert Apr 30, 2025
499d751
Add format-js
m-bert May 5, 2025
57c7109
Add global scripts for lint and format js
m-bert May 5, 2025
96de4ea
Fix android formatter paths
m-bert May 5, 2025
1708929
Add lint-staged config
m-bert May 5, 2025
af1663e
Remove unnecessary eslint comment
m-bert May 5, 2025
6b3c8af
Remove another comment
m-bert May 5, 2025
fed3ee5
Mergele @mbert/monorepo
m-bert May 7, 2025
8ce355c
Take out the trash
m-bert May 7, 2025
7b585ac
Extract gesture handler path to env
m-bert May 7, 2025
d6fdb27
Add expo app to CI
m-bert May 7, 2025
e87d619
Add empty postinstall
m-bert May 7, 2025
d7fb585
Mergele @mbert/monorepo-fix-CI-paths
m-bert May 7, 2025
ae4cfd9
Install pods conditionally
m-bert May 7, 2025
82ef8e4
Merge branch '@mbert/monorepo-fix-CI-paths' into @mbert/monorepo-unif…
m-bert May 7, 2025
61d78c9
Mergele @mbert/monorepo
m-bert May 8, 2025
ca5aba3
Remove postinstall script
m-bert May 8, 2025
18ce1a6
Use - scripts in : scripts :)
m-bert May 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"root": true,
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
Expand All @@ -15,7 +16,7 @@
"project": ["./tsconfig.json"]
},
"env": { "browser": true, "node": true, "jest/globals": true },
"plugins": ["jest"],
"plugins": ["react", "jest"],
"ignorePatterns": ["packages/react-native-gesture-handler/lib/**/*"],
"rules": {
// removed in new jest-eslint-plugin, referenced in satya config
Expand All @@ -26,19 +27,28 @@
"warn",
{ "assertFunctionNames": ["expect*", "assert*"] }
],
"jest/no-conditional-expect": "warn",

// temporary, remove after we type internals better
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/ban-types": "warn",

// common
"@typescript-eslint/explicit-module-boundary-types": "off",
"import/named": "off",
"react/sort-comp": "off",
"react/no-unused-prop-types": "warn",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/no-floating-promises": "warn",
"@eslint-react/no-missing-component-display-name": "warn",
"@eslint-react/no-nested-components": "warn",
"@eslint-react/no-nested-component-definitions": "warn",
"prefer-const": [
"error",
{
Expand All @@ -49,6 +59,13 @@
"error",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-redundant-type-constituents": "warn",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-misused-promises": "warn",
"@eslint-react/no-array-index-key": "warn",
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": "error",
"no-use-before-define": "off",
Expand All @@ -61,6 +78,7 @@
}
],
"curly": "error",
"spaced-comment": "error"
"spaced-comment": "error",
"no-alert": "warn"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
cache: 'yarn'
- name: Install node dependencies
working-directory: ${{ matrix.working-directory }}
run: yarn install --immutable && yarn postinstall
run: yarn install --immutable
- name: Build app
working-directory: ${{ matrix.working-directory }}/android
run: ./gradlew assembleDebug --console=plain -PreactNativeArchitectures=arm64-v8a
2 changes: 1 addition & 1 deletion .github/workflows/ios-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
cache: 'yarn'
- name: Install node dependencies
working-directory: ${{ matrix.working-directory }}
run: yarn install --immutable && yarn postinstall
run: yarn install --immutable
- name: Install pods
if: ${{ matrix.working-directory == 'apps/BasicExample' }}
working-directory: ${{ matrix.working-directory }}/ios
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/static-example-apps-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,11 @@ jobs:
with:
node-version: 18
cache: 'yarn'
- name: Install root node dependencies
run: yarn --immutable && yarn prepare
- name: Install ${{ matrix.working-directory }} app node dependencies
working-directory: ${{ matrix.working-directory }}
run: yarn
- name: Install node dependencies
run: yarn --immutable && yarn postinstall
- name: Check types
working-directory: ${{ matrix.working-directory }}
run: yarn tsc --noEmit
run: yarn ts-check
- name: Lint
working-directory: ${{ matrix.working-directory }}
run: yarn lint-check
run: yarn lint-js
6 changes: 3 additions & 3 deletions .github/workflows/static-root-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
node-version: 18
cache: 'yarn'
- name: Install node dependencies
run: yarn
run: yarn --immutable && yarn postinstall
- name: Check types
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn tsc --noEmit
run: yarn ts-check
- name: Lint
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn lint:js-root
run: yarn lint-js
- name: Check for circular dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn circular-dependency-check
5 changes: 4 additions & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"*.(js|jsx|ts|tsx)": ["yarn eslint", "yarn prettier --write"]
"**/*.{ts,tsx}": "yarn format:js",
"packages/react-native-gesture-handler/android/**/*.kt": "yarn format:android",
"packages/react-native-gesture-handler/apple/**/*.{h,m,mm,cpp}": "yarn format:apple",
"packages/react-native-gesture-handler/src/specs/*.ts": "yarn sync-architectures"
}
3 changes: 0 additions & 3 deletions apps/BasicExample/.eslintrc.js

This file was deleted.

19 changes: 14 additions & 5 deletions apps/BasicExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
"postinstall": ""
"ts-check": "yarn tsc --noEmit",
"lint-js": "eslint --ext '.js,.ts,.tsx' src/ && yarn prettier --check './src/**/*.{js,jsx,ts,tsx}'",
"format-js": "prettier --write --list-different './src/**/*.{js,jsx,ts,tsx}'"
},
"dependencies": {
"react": "19.0.0",
Expand All @@ -27,13 +29,20 @@
"@react-native/metro-config": "0.79.0",
"@react-native/typescript-config": "0.79.0",
"@types/jest": "^29.5.13",
"@types/react": "^19.0.0",
"@types/react": "^19.0.12",
"@types/react-test-renderer": "^19.0.0",
"eslint": "^8.19.0",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"eslint": "^8.57.0",
"eslint-config-satya164": "3.3.0",
"eslint-import-resolver-babel-module": "^5.2.0",
"eslint-plugin-jest": "27.4.3",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.37.5",
"jest": "^29.6.3",
"prettier": "2.8.8",
"prettier": "3.3.3",
"react-test-renderer": "19.0.0",
"typescript": "5.0.4"
"typescript": "~5.8.3"
},
"engines": {
"node": ">=18"
Expand Down
4 changes: 2 additions & 2 deletions apps/BasicExample/src/Navigator.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react-native/no-inline-styles */
import React, { useEffect, useState } from 'react';
import { View, Text, Pressable, BackHandler } from 'react-native';

Expand Down Expand Up @@ -55,7 +54,7 @@

goBack() {
if (this.history.length === 1) {
throw "Can't go back, no history";
throw new Error("Can't go back, no history");
}
this.history.pop();
this.setCurrentRoute(this.history[this.history.length - 1]);
Expand All @@ -79,7 +78,8 @@
this.setCurrentRoute = setCurrentRoute;

useEffect(() => {
// eslint-disable-next-line @typescript-eslint/unbound-method
return BackHandler.addEventListener('hardwareBackPress', this.backHandler)

Check warning on line 82 in apps/BasicExample/src/Navigator.tsx

View workflow job for this annotation

GitHub Actions / check (apps/BasicExample)

An 'addEventListener' in 'useEffect' should have a corresponding 'removeEventListener' in its cleanup function
.remove;
}, []);

Expand Down
4 changes: 0 additions & 4 deletions apps/CommonApp/.eslintrc.js

This file was deleted.

7 changes: 0 additions & 7 deletions apps/CommonApp/.prettierrc.js

This file was deleted.

Loading
Loading