Skip to content

Commit fc8e50d

Browse files
committed
Move config files
1 parent 81453e8 commit fc8e50d

15 files changed

Lines changed: 16740 additions & 239 deletions

packages/react-native-gesture-handler/.clang-format renamed to .clang-format

File renamed without changes.

.eslintrc.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"extends": [
3+
"plugin:@typescript-eslint/recommended",
4+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
5+
"satya164"
6+
],
7+
"settings": {
8+
"react": { "version": "19" },
9+
"import/resolver": {
10+
"babel-module": {}
11+
}
12+
},
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"project": ["./tsconfig.json"]
16+
},
17+
"env": { "browser": true, "node": true, "jest/globals": true },
18+
"plugins": ["jest"],
19+
"ignorePatterns": ["packages/react-native-gesture-handler/lib/**/*"],
20+
"rules": {
21+
// removed in new jest-eslint-plugin, referenced in satya config
22+
"jest/no-truthy-falsy": "off",
23+
"jest/valid-describe": "off",
24+
25+
"jest/expect-expect": [
26+
"warn",
27+
{ "assertFunctionNames": ["expect*", "assert*"] }
28+
],
29+
// temporary, remove after we type internals better
30+
"@typescript-eslint/restrict-template-expressions": "warn",
31+
"@typescript-eslint/no-unsafe-member-access": "warn",
32+
"@typescript-eslint/no-unsafe-call": "warn",
33+
"@typescript-eslint/no-unsafe-assignment": "warn",
34+
"@typescript-eslint/no-unsafe-return": "warn",
35+
"@typescript-eslint/ban-types": "warn",
36+
37+
// common
38+
"@typescript-eslint/explicit-module-boundary-types": "off",
39+
"import/named": "off",
40+
"react/sort-comp": "off",
41+
"react/no-unused-prop-types": "warn",
42+
"prefer-const": [
43+
"error",
44+
{
45+
"destructuring": "all"
46+
}
47+
],
48+
"@typescript-eslint/no-unused-vars": [
49+
"error",
50+
{ "argsIgnorePattern": "^_" }
51+
],
52+
"no-redeclare": "off",
53+
"@typescript-eslint/no-redeclare": "error",
54+
"no-use-before-define": "off",
55+
"@typescript-eslint/no-use-before-define": "error",
56+
"@typescript-eslint/ban-ts-comment": [
57+
"error",
58+
{
59+
"ts-ignore": "allow-with-description",
60+
"ts-expect-error": "allow-with-description"
61+
}
62+
],
63+
"curly": "error",
64+
"spaced-comment": "error"
65+
}
66+
}

packages/react-native-gesture-handler/.git-blame-ignore-revs renamed to .git-blame-ignore-revs

File renamed without changes.

.gitignore

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,78 @@
1-
node_modules
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
24+
# CocoaPods
25+
**/ios/Pods
26+
27+
# Android/IntelliJ
28+
#
29+
build/
30+
.idea
31+
.gradle
32+
.cxx
33+
local.properties
34+
*.iml
35+
36+
# node.js
37+
#
38+
node_modules/
39+
npm-debug.log
40+
yarn-error.log
41+
42+
# BUCK
43+
buck-out/
44+
\.buckd/
45+
*.keystore
46+
!debug.keystore
47+
48+
# Expo
49+
.expo/
50+
web-build/
51+
52+
# vscode
53+
jsconfig.json
54+
.classpath
55+
.project
56+
.settings/
57+
.vscode
58+
59+
# Yarn
60+
.yarn/*
61+
!.yarn/cache
62+
!.yarn/patches
63+
!.yarn/plugins
64+
!.yarn/releases
65+
!.yarn/sdks
66+
!.yarn/versions
67+
68+
69+
# TS
70+
dist/
71+
72+
# generated by bob
73+
/lib/
74+
75+
# clangd
76+
.cache
77+
CompilationDatabase
78+
compile_commands.json

packages/react-native-gesture-handler/.prettierrc.json renamed to .prettierrc.json

File renamed without changes.

packages/react-native-gesture-handler/.yarnrc.yml renamed to .yarnrc.yml

File renamed without changes.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Software Mansion <swmansion.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/react-native-gesture-handler/README-Fabric.md renamed to README-Fabric.md

File renamed without changes.

packages/react-native-gesture-handler/README.md renamed to README.md

File renamed without changes.

package.json

Lines changed: 6 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -1,160 +1,21 @@
11
{
2-
"name": "react-native-gesture-handler",
3-
"version": "2.25.0",
4-
"description": "Declarative API exposing native platform touch and gesture system to React Native",
5-
"scripts": {
6-
"prepare": "bob build && husky install",
7-
"test": "jest",
8-
"build": "yarn tsc -p tsconfig.build.json",
9-
"precommit": "lint-staged",
10-
"release": "npm login && release-it",
11-
"ts-check": "yarn tsc --noEmit",
12-
"format:js": "prettier --write --list-different './{src,example,FabricExample,MacOSExample}/**/*.{js,jsx,ts,tsx}'",
13-
"format:android": "node ./scripts/format-android.js",
14-
"format:apple": "find apple/ -iname *.h -o -iname *.m -o -iname *.cpp -o -iname *.mm | xargs clang-format -i",
15-
"lint:js": "eslint --ext '.js,.ts,.tsx' src/ example/src FabricExample/src MacOSExample/src && yarn prettier --check './{src,example,FabricExample,MacOSExample}/**/*.{js,jsx,ts,tsx}'",
16-
"lint:js-root": "eslint --ext '.js,.ts,.tsx' src/ && yarn prettier --check './src/**/*.{js,jsx,ts,tsx}'",
17-
"lint:android": "./android/gradlew -p android spotlessCheck -q",
18-
"circular-dependency-check": "yarn madge --extensions js,ts,tsx --circular src",
19-
"architectures-consistency-check": "node ./scripts/codegen-check-consistency.js",
20-
"sync-architectures": "node ./scripts/codegen-sync-archs.js"
21-
},
22-
"react-native": "src/index.ts",
23-
"main": "lib/commonjs/index.js",
24-
"module": "lib/module/index.js",
25-
"types": "lib/typescript/index.d.ts",
26-
"files": [
27-
"src",
28-
"lib",
29-
"!**/__tests__",
30-
"!**/__fixtures__",
31-
"!**/__mocks__",
32-
"android/build.gradle",
33-
"android/gradle.properties",
34-
"android/src/main/AndroidManifest.xml",
35-
"android/src/main/java/",
36-
"android/src/main/jni/",
37-
"android/fabric/src/main/java",
38-
"android/paper/src/main/java",
39-
"android/paper77/src/main/java",
40-
"android/common/src/main/java/",
41-
"android/reanimated/src/main/java/",
42-
"android/noreanimated/src/main/java/",
43-
"android/package77/",
44-
"android/packageDeprecated/",
45-
"android/svg",
46-
"android/nosvg",
47-
"apple/",
48-
"Swipeable/",
49-
"ReanimatedSwipeable/",
50-
"jest-utils/",
51-
"DrawerLayout/",
52-
"ReanimatedDrawerLayout/",
53-
"README.md",
54-
"jestSetup.js",
55-
"RNGestureHandler.podspec"
2+
"name": "react-native-gesture-handler-monorepo",
3+
"version": "0.0.0",
4+
"private": true,
5+
"workspaces": [
6+
"packages/*"
567
],
57-
"repository": {
58-
"type": "git",
59-
"url": "git+https://github.com/software-mansion/react-native-gesture-handler.git"
60-
},
61-
"author": {
62-
"email": "krzys.magiera@gmail.com",
63-
"name": "Krzysztof Magiera"
64-
},
65-
"license": "MIT",
66-
"readmeFilename": "README.md",
67-
"bugs": {
68-
"url": "https://github.com/software-mansion/react-native-gesture-handler/issues"
69-
},
70-
"homepage": "https://github.com/software-mansion/react-native-gesture-handler#readme",
71-
"dependencies": {
72-
"@egjs/hammerjs": "^2.0.17",
73-
"hoist-non-react-statics": "^3.3.0",
74-
"invariant": "^2.2.4"
75-
},
8+
"scripts": {},
769
"devDependencies": {
77-
"@babel/core": "^7.25.2",
78-
"@babel/preset-env": "^7.25.3",
79-
"@babel/preset-typescript": "^7.12.7",
80-
"@react-native/babel-preset": "0.78.0",
81-
"@testing-library/react-native": "^12.5.1",
82-
"@types/hoist-non-react-statics": "^3.3.1",
83-
"@types/invariant": "^2.2.37",
84-
"@types/jest": "^27.0.3",
85-
"@types/react": "^19.0.12",
86-
"@types/react-test-renderer": "^19.0.0",
8710
"@typescript-eslint/eslint-plugin": "^4.33.0",
8811
"@typescript-eslint/parser": "^4.33.0",
89-
"babel-plugin-module-resolver": "^5.0.2",
90-
"clang-format": "^1.8.0",
9112
"eslint": "^7.32.0",
9213
"eslint-config-satya164": "^3.1.8",
9314
"eslint-import-resolver-babel-module": "^5.2.0",
94-
"eslint-plugin-jest": "^26.0.0",
9515
"eslint-plugin-prettier": "^5.2.1",
96-
"expo": "^35.0.1",
9716
"husky": "^8.0.1",
98-
"jest": "^28.1.0",
99-
"lint-staged": "^12.3.2",
100-
"madge": "^6.1.0",
10117
"prettier": "3.3.3",
102-
"react": "19.0.0",
103-
"react-native": "0.78.0",
104-
"react-native-builder-bob": "^0.39.0",
105-
"react-native-reanimated": "^3.12.0",
106-
"react-test-renderer": "19.0.0",
107-
"release-it": "^13.6.5",
10818
"typescript": "5.0.4"
10919
},
110-
"peerDependencies": {
111-
"react": "*",
112-
"react-native": "*"
113-
},
114-
"lint-staged": {
115-
"./{src,example,FabricExample,MacOSExample}/**/*.{ts,tsx}": "yarn format:js",
116-
"android/**/*.kt": "yarn format:android",
117-
"apple/**/*.{h,m,mm,cpp}": "yarn format:apple",
118-
"src/specs/*.ts": "yarn sync-architectures"
119-
},
120-
"release-it": {
121-
"hooks": {
122-
"before:git:bump": [
123-
"# check if version corresponds to changes in native files \n if git diff --name-only ${latestVersion} HEAD | egrep \"(android/.*)|(ios/.*)\" -q; then egrep '\\.0$' -q <<< ${version}; else test $? -eq 1; fi"
124-
]
125-
}
126-
},
127-
"react-native-builder-bob": {
128-
"source": "src",
129-
"output": "lib",
130-
"targets": [
131-
"commonjs",
132-
"module",
133-
[
134-
"typescript",
135-
{
136-
"project": "tsconfig.build.json"
137-
}
138-
]
139-
]
140-
},
141-
"eslintIgnore": [
142-
"node_modules/",
143-
"lib/",
144-
"src/specs/*NativeComponent.js"
145-
],
146-
"codegenConfig": {
147-
"name": "rngesturehandler_codegen",
148-
"type": "all",
149-
"jsSrcsDir": "./src/specs",
150-
"android": {
151-
"javaPackageName": "com.swmansion.gesturehandler"
152-
},
153-
"ios": {
154-
"componentProvider": {
155-
"RNGestureHandlerButton": "RNGestureHandlerButtonComponentView"
156-
}
157-
}
158-
},
15920
"packageManager": "yarn@4.7.0"
16021
}

0 commit comments

Comments
 (0)