Browse Source

Updated project config to match default react native projects

Arnaud Vergnet 3 years ago
parent
commit
26aded3684
9 changed files with 12233 additions and 27 deletions
  1. 6
    0
      .buckconfig
  2. 4
    0
      .eslintrc.js
  3. 64
    2
      .flowconfig
  4. 1
    0
      .gitattributes
  5. 3
    25
      .gitignore
  6. 6
    0
      .prettierrc.js
  7. BIN
      android/app/debug.keystore
  8. 12148
    0
      package-lock.json
  9. 1
    0
      package.json

+ 6
- 0
.buckconfig View File

@@ -0,0 +1,6 @@
1
+
2
+[android]
3
+  target = Google Inc.:Google APIs:23
4
+
5
+[maven_repositories]
6
+  central = https://repo1.maven.org/maven2

+ 4
- 0
.eslintrc.js View File

@@ -0,0 +1,4 @@
1
+module.exports = {
2
+  root: true,
3
+  extends: '@react-native-community',
4
+};

+ 64
- 2
.flowconfig View File

@@ -1,11 +1,73 @@
1 1
 [ignore]
2
+; We fork some components by platform
3
+.*/*[.]android.js
4
+
5
+; Ignore "BUCK" generated dirs
6
+<PROJECT_ROOT>/\.buckd/
7
+
8
+; Ignore polyfills
9
+node_modules/react-native/Libraries/polyfills/.*
10
+
11
+; These should not be required directly
12
+; require from fbjs/lib instead: require('fbjs/lib/warning')
13
+node_modules/warning/.*
14
+
15
+; Flow doesn't support platforms
16
+.*/Libraries/Utilities/LoadingView.js
17
+
18
+[untyped]
19
+.*/node_modules/@react-native-community/cli/.*/.*
2 20
 
3 21
 [include]
4 22
 
5 23
 [libs]
6
-
7
-[lints]
24
+node_modules/react-native/interface.js
25
+node_modules/react-native/flow/
8 26
 
9 27
 [options]
28
+emoji=true
29
+
30
+esproposal.optional_chaining=enable
31
+esproposal.nullish_coalescing=enable
32
+
33
+module.file_ext=.js
34
+module.file_ext=.json
35
+module.file_ext=.ios.js
36
+
37
+munge_underscores=true
38
+
39
+module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
40
+module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
41
+
42
+suppress_type=$FlowIssue
43
+suppress_type=$FlowFixMe
44
+suppress_type=$FlowFixMeProps
45
+suppress_type=$FlowFixMeState
46
+
47
+suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
48
+suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
49
+suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
50
+
51
+[lints]
52
+sketchy-null-number=warn
53
+sketchy-null-mixed=warn
54
+sketchy-number=warn
55
+untyped-type-import=warn
56
+nonstrict-import=warn
57
+deprecated-type=warn
58
+unsafe-getters-setters=warn
59
+unnecessary-invariant=warn
60
+signature-verification-failure=warn
61
+deprecated-utility=error
10 62
 
11 63
 [strict]
64
+deprecated-type
65
+nonstrict-import
66
+sketchy-null
67
+unclear-type
68
+unsafe-getters-setters
69
+untyped-import
70
+untyped-type-import
71
+
72
+[version]
73
+^0.122.0

+ 1
- 0
.gitattributes View File

@@ -0,0 +1 @@
1
+*.pbxproj -text

+ 3
- 25
.gitignore View File

@@ -1,23 +1,3 @@
1
-node_modules/**/*
2
-.expo/*
3
-npm-debug.*
4
-*.jks
5
-*.p12
6
-*.key
7
-*.mobileprovision
8
-*.orig.*
9
-web-build/
10
-web-report/
11
-/.expo-shared/
12
-/package-lock.json
13
-
14
-!/.idea/
15
-/.idea/*
16
-!/.idea/runConfigurations
17
-
18
-# The following contents were automatically generated by expo-cli during eject
19
-# ----------------------------------------------------------------------------
20
-
21 1
 # OSX
22 2
 #
23 3
 .DS_Store
@@ -40,7 +20,6 @@ DerivedData
40 20
 *.hmap
41 21
 *.ipa
42 22
 *.xcuserstate
43
-project.xcworkspace
44 23
 
45 24
 # Android/IntelliJ
46 25
 #
@@ -60,6 +39,9 @@ yarn-error.log
60 39
 buck-out/
61 40
 \.buckd/
62 41
 *.keystore
42
+!debug.keystore
43
+*.jks
44
+/android/gradle.properties
63 45
 
64 46
 # fastlane
65 47
 #
@@ -77,7 +59,3 @@ buck-out/
77 59
 
78 60
 # CocoaPods
79 61
 /ios/Pods/
80
-
81
-# Expo
82
-.expo/*
83
-/android/gradle.properties

+ 6
- 0
.prettierrc.js View File

@@ -0,0 +1,6 @@
1
+module.exports = {
2
+  bracketSpacing: false,
3
+  jsxBracketSameLine: true,
4
+  singleQuote: true,
5
+  trailingComma: 'all',
6
+};

BIN
android/app/debug.keystore View File


+ 12148
- 0
package-lock.json
File diff suppressed because it is too large
View File


+ 1
- 0
package.json View File

@@ -66,6 +66,7 @@
66 66
     "jest": "^25.1.0",
67 67
     "jest-extended": "^0.11.5",
68 68
     "metro-react-native-babel-preset": "^0.59.0",
69
+    "prettier": "2.0.5",
69 70
     "react-test-renderer": "16.13.1"
70 71
   }
71 72
 }

Loading…
Cancel
Save